mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
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:
parent
8942fd77be
commit
c599a68240
3 changed files with 24 additions and 15 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue