From: moodler Date: Tue, 22 Oct 2002 09:54:36 +0000 (+0000) Subject: new function print_heading_with_help() to print a heading with a helpbutton X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=377f3c9ee4f57a91ed9879e93bb22b4f7ae88412;p=moodle.git new function print_heading_with_help() to print a heading with a helpbutton --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 8b3c01889c..7daf5957ec 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -119,6 +119,13 @@ function print_heading($text, $align="CENTER", $size=3) { echo "

".stripslashes($text)."

"; } +function print_heading_with_help($text, $helppage, $module="moodle") { +// Centered heading with attached help button (same title text) + echo "

".stripslashes($text); + helpbutton($helppage, $text, $module); + echo "

"; +} + function print_continue($link) { global $HTTP_REFERER;