MDL-40063 mod_quiz: replaced 'addcategory' add_to_log call with an event

This commit is contained in:
Mark Nelson 2013-11-19 20:49:17 -08:00
parent 5e8f736565
commit 58940b190a
5 changed files with 167 additions and 3 deletions

View file

@ -89,10 +89,8 @@ if ($data = $mform->get_data()) {
list($parentid, $contextid) = explode(',', $data->parent);
$categoryid = $qcobject->add_category($data->parent, $data->name, '', true);
$includesubcategories = 0;
add_to_log($quiz->course, 'quiz', 'addcategory',
'view.php?id=' . $cm->id, $categoryid, $cm->id);
$returnurl->param('cat', $categoryid . ',' . $contextid);
$returnurl->param('cat', $categoryid . ',' . $contextid);
} else {
throw new coding_exception(
'It seems a form was submitted without any button being pressed???');