Gitlab CSE Unil

Commit 5a3b9b7e authored by M. Chardon's avatar M. Chardon
Browse files

suppression gestion des tags lors de la cération de l'activité

parent 480ba547
......@@ -162,36 +162,6 @@ class mod_audioannotation_mod_form extends moodleform_mod {
$mform->addElement($this::MOODLEFORM_SELECTYESNO, 'pairing', $name);
$mform->setDefault('pairing', 0);
if (!$this->_instance) {
$tagNames = array();
$optionsTag = array(
'multiple' => true,
'tags' => true
);
$name = get_string('settingtags', AUDIOANNOT_MODNAME);
$mform->addElement('autocomplete', 'tagids', $name, $tagNames, $optionsTag);
if ($this->_instance) {
$mform->setDefault('tagids', $tagNames);
}
}
/*$tagNames = array();
if ($this->_instance) {
$listTags = editor::getCategories($this->_instance);
$tagNames = array();
foreach ($listTags as $tagid => $tag) {
$tagNames[$tagid] = $tag->label;
}
}
$optionsTag = array(
'multiple' => true,
'tags' => true
);
$name = get_string('settingtags', AUDIOANNOT_MODNAME);
$mform->addElement('autocomplete', 'tagids', $name, $tagNames, $optionsTag);
if ($this->_instance) {
$mform->setDefault('tagids', $tagNames);
}*/
// Add standard grading elements.
$this->standard_grading_coursemodule_elements();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment