navigation MDL-22044 Added setting to limit content that is shown on the navigation back into the navigation block

This commit is contained in:
Sam Hemelryk
2010-04-21 09:44:16 +00:00
parent 8f57314b1e
commit 88f77c3c26
7 changed files with 55 additions and 13 deletions
+10
View File
@@ -57,5 +57,15 @@ class block_navigation_edit_form extends block_edit_form {
$mform->addElement('text', 'config_trimlength', get_string('trimlength', $this->block->blockname));
$mform->setDefault('config_trimlength', 50);
$mform->setType('config_trimlength', PARAM_INT);
$options = array(
0 => get_string('everything', $this->block->blockname),
global_navigation::TYPE_COURSE => get_string('courses', $this->block->blockname),
global_navigation::TYPE_SECTION => get_string('coursestructures', $this->block->blockname),
global_navigation::TYPE_ACTIVITY => get_string('courseactivities', $this->block->blockname)
);
$mform->addElement('select', 'config_expansionlimit', get_string('expansionlimit', $this->block->blockname), $options);
$mform->setType('config_expansionlimit', PARAM_INT);
}
}