MDL-10383 adding new standard elements method - modules now must specify what they support (groups/groupings/groupmembersonly); by default only groupmode selector is enabled

This commit is contained in:
skodak
2007-08-20 07:27:04 +00:00
parent f9bb6a98d8
commit e04ff2d559
5 changed files with 70 additions and 36 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class mod_resource_mod_form extends moodleform_mod {
$mform->addElement('header', 'typedesc', get_string('resourcetype'.$type,'resource'));
$this->_resinstance->setup_elements($mform);
$this->standard_coursemodule_elements(false, true);
$this->standard_coursemodule_elements(array('groups'=>false, 'groupmembersonly'=>true));
$this->add_action_buttons();
}