From 34c8915d820fed95213c2dcfaaf2631c725dae77 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 11 Mar 2002 03:21:10 +0000 Subject: [PATCH] Added helpbutton function for popup help, see also /help.php --- lib/moodlelib.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index a9bf51b945..0c87e286f4 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -197,6 +197,13 @@ function error ($message, $link="") { die; } +function helpbutton ($info, $type="file") { + global $CFG; + $url = "/help.php?$type=help.$info.php"; + $image = "helpwwwroot/pix/help.gif\">"; + link_to_popup_window ($url, "popup", $image, $height=400, $width=500); +} + function notice ($message, $link="") { global $THEME, $HTTP_REFERER; -- 2.39.5