From 377f3c9ee4f57a91ed9879e93bb22b4f7ae88412 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 22 Oct 2002 09:54:36 +0000 Subject: [PATCH] new function print_heading_with_help() to print a heading with a helpbutton --- lib/moodlelib.php | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.5