]> git.mjollnir.org Git - moodle.git/commitdiff
new function print_heading_with_help() to print a heading with a helpbutton
authormoodler <moodler>
Tue, 22 Oct 2002 09:54:36 +0000 (09:54 +0000)
committermoodler <moodler>
Tue, 22 Oct 2002 09:54:36 +0000 (09:54 +0000)
lib/moodlelib.php

index 8b3c01889c37297411f52ab5bfa90567032f30a7..7daf5957ecbeef13524ebfa48da905a53f88c12f 100644 (file)
@@ -119,6 +119,13 @@ function print_heading($text, $align="CENTER", $size=3) {
     echo "<P ALIGN=\"$align\"><FONT SIZE=\"$size\"><B>".stripslashes($text)."</B></FONT></P>";
 }
 
+function print_heading_with_help($text, $helppage, $module="moodle") {
+// Centered heading with attached help button (same title text)
+    echo "<P ALIGN=\"CENTER\"><FONT SIZE=\"3\"><B>".stripslashes($text);
+    helpbutton($helppage, $text, $module);
+    echo "</B></FONT></P>";
+}
+    
 function print_continue($link) {
     global $HTTP_REFERER;