Skip to content

Commit

Permalink
Added bodytags parameter for print_header, to help SCORM module inser…
Browse files Browse the repository at this point in the history
…t onload() to pages
  • Loading branch information
moodler committed Jul 14, 2004
1 parent e2d3d77 commit bc05b15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/weblib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ function highlightfast($needle, $haystack) {
/// STANDARD WEB PAGE PARTS /////////////////////////////////////////////////// /// STANDARD WEB PAGE PARTS ///////////////////////////////////////////////////


function print_header ($title="", $heading="", $navigation="", $focus="", $meta="", function print_header ($title="", $heading="", $navigation="", $focus="", $meta="",
$cache=true, $button=" ", $menu="", $usexml=false) { $cache=true, $button=" ", $menu="", $usexml=false, $bodytags="") {
// $title - appears top of window // $title - appears top of window
// $heading - appears top of page // $heading - appears top of page
// $navigation - premade navigation string // $navigation - premade navigation string
Expand All @@ -932,6 +932,8 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
// $button - HTML code for a button (usually for module editing) // $button - HTML code for a button (usually for module editing)
// $menu - HTML code for a popup menu // $menu - HTML code for a popup menu
// $usexml - use XML for this page // $usexml - use XML for this page
// $bodytags - this text will be included verbatim in the <body> tag (useful for onload() etc)

global $USER, $CFG, $THEME, $SESSION; global $USER, $CFG, $THEME, $SESSION;


global $course; // This is a bit of an ugly hack to be gotten rid of later global $course; // This is a bit of an ugly hack to be gotten rid of later
Expand Down

0 comments on commit bc05b15

Please sign in to comment.