navigation MDL-14632 Deprecate print_header menu argument and provide PAGE method

This commit is contained in:
samhemelryk 2009-09-01 03:47:07 +00:00
parent b7510c3aa8
commit e120c61d24
7 changed files with 33 additions and 18 deletions

View file

@ -2120,7 +2120,7 @@ function print_continue($link, $return = false) {
* @return string|void If return=true then string else void
*/
function print_header($title='', $heading='', $navigation='', $focus='',
$meta='', $cache=true, $button=' ', $menu='',
$meta='', $cache=true, $button=' ', $menu=null,
$usexml=false, $bodytags='', $return=false) {
global $PAGE, $OUTPUT;
@ -2132,6 +2132,7 @@ function print_header($title='', $heading='', $navigation='', $focus='',
$button = ' ';
}
$PAGE->set_button($button);
$PAGE->set_headingmenu($menu);
// TODO $menu
@ -2146,7 +2147,7 @@ function print_header($title='', $heading='', $navigation='', $focus='',
throw new coding_exception('The $bodytags parameter to print_header is no longer supported.');
}
$output = $OUTPUT->header($menu);
$output = $OUTPUT->header();
if ($return) {
return $output;