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 8b3c018..7daf595 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;