Added bodytags parameter for print_header, to help SCORM module insert onload() to pages

This commit is contained in:
moodler
2004-07-14 06:41:56 +00:00
parent e2d3d77173
commit bc05b1544d
+3 -1
View File
@@ -922,7 +922,7 @@ function highlightfast($needle, $haystack) {
/// STANDARD WEB PAGE PARTS ///////////////////////////////////////////////////
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
// $heading - appears top of page
// $navigation - premade navigation string
@@ -932,6 +932,8 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
// $button - HTML code for a button (usually for module editing)
// $menu - HTML code for a popup menu
// $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 $course; // This is a bit of an ugly hack to be gotten rid of later