notes MDL-19806 Updated print_header and build_navigation to OUTPUT and PAGE equivalents

This commit is contained in:
samhemelryk
2009-09-07 05:43:15 +00:00
parent fb67602416
commit b0ff558ccb
10 changed files with 31 additions and 37 deletions
+3 -4
View File
@@ -55,10 +55,9 @@ if($mform->is_cancelled()) {
redirect('view.php?d='.$data->id);
} elseif (!$formdata = (array) $mform->get_data()) {
// build header to match the rest of the UI
$nav = build_navigation('', $cm);
print_header_simple($data->name, '', $nav,
'', '', true, update_module_button($cm->id, $course->id, get_string('modulename', 'data')),
navmenu($course, $cm), '', '');
$PAGE->set_title($data->name);
$PAGE->set_button(update_module_button($cm->id, $course->id, get_string('modulename', 'data')));
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($data->name));
// these are for the tab display