Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added bodytags parameter for print_header, to help SCORM module inser…

…t onload() to pages
  • Loading branch information...
commit bc05b1544d6cc6db5074cb013f612fd7dbbc7c99 1 parent e2d3d77
authored July 14, 2004

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  lib/weblib.php
4  lib/weblib.php
@@ -922,7 +922,7 @@ function highlightfast($needle, $haystack) {
922 922
 /// STANDARD WEB PAGE PARTS ///////////////////////////////////////////////////
923 923
 
924 924
 function print_header ($title="", $heading="", $navigation="", $focus="", $meta="",
925  
-                       $cache=true, $button=" ", $menu="", $usexml=false) {
  925
+                       $cache=true, $button=" ", $menu="", $usexml=false, $bodytags="") {
926 926
 // $title - appears top of window
927 927
 // $heading - appears top of page
928 928
 // $navigation - premade navigation string
@@ -932,6 +932,8 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
932 932
 // $button - HTML code for a button (usually for module editing)
933 933
 // $menu - HTML code for a popup menu
934 934
 // $usexml - use XML for this page
  935
+// $bodytags - this text will be included verbatim in the <body> tag (useful for onload() etc)
  936
+
935 937
     global $USER, $CFG, $THEME, $SESSION;
936 938
 
937 939
     global $course;                // This is a bit of an ugly hack to be gotten rid of later

0 notes on commit bc05b15

Please sign in to comment.
Something went wrong with that request. Please try again.