Permalink
Browse files

Added helpbutton function for popup help, see also /help.php

  • Loading branch information...
1 parent 229b658 commit 34c8915d820fed95213c2dcfaaf2631c725dae77 martin committed Mar 11, 2002
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/moodlelib.php
View
7 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 = "<IMG BORDER=0 ALT=help SRC=\"$CFG->wwwroot/pix/help.gif\">";
+ link_to_popup_window ($url, "popup", $image, $height=400, $width=500);
+}
+
function notice ($message, $link="") {
global $THEME, $HTTP_REFERER;

0 comments on commit 34c8915

Please sign in to comment.