if (!$param->edit) { $navlinks[] = array('name' => $streditingcategories, 'link' => '', 'type' => 'title'); } else { $navlinks[] = array('name' => $streditingcategories, 'link' => $thispageurl->out(), 'type' => 'title'); $navlinks[] = array('name' => get_string('editingcategory', 'question'), 'link' => '', 'type' => 'title'); } $navigation = build_navigation($navlinks); print_header_simple($streditingcategories, '', $navigation, "", "", true, $strupdatemodule); // print tabs if ($cm !== null) { $currenttab = 'edit'; $mode = 'categories'; ${$cm->modname} = $module; include $CFG->dirroot . "/mod/{$cm->modname}/tabs.php"; } else { $currenttab = 'categories'; $context = $contexts->lowest(); include 'tabs.php'; } // display UI if (!empty($param->edit)) { $qcobject->edit_single_category($param->edit); } else { if ($questionstomove) { $qcobject->display_move_form($questionstomove, $category); } else { // display the user interface $qcobject->display_user_interface(); } } print_footer($COURSE);