question bank: MDL-12787, MDL-17870 field in the question editing form to tag questions, and load and save the tags from the DB.

This commit is contained in:
tjhunt 2009-01-16 08:00:06 +00:00
parent 8942fd77be
commit c599a68240
3 changed files with 24 additions and 15 deletions

View file

@ -146,6 +146,11 @@ class question_edit_form extends moodleform {
// Any questiontype specific fields.
$this->definition_inner($mform);
if (!empty($CFG->usetags)) {
$mform->addElement('header', 'tagsheader', get_string('tags'));
$mform->addElement('tags', 'tags', get_string('tags'));
}
if (!empty($this->question->id)){
$mform->addElement('header', 'createdmodifiedheader', get_string('createdmodifiedheader', 'question'));
$a = new object();