Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…t onload() to pages
  • Loading branch information...
commit bc05b1544d6cc6db5074cb013f612fd7dbbc7c99 1 parent e2d3d77
moodler authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/weblib.php
4 lib/weblib.php
@@ -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 $course; // This is a bit of an ugly hack to be gotten rid of later
Please sign in to comment.
Something went wrong with that request. Please try again.