From: gbateson Date: Wed, 1 Aug 2007 05:35:29 +0000 (+0000) Subject: add extra parameter to "hotpot_print_show_links" function so that links can be printe... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1094f0637f0e12940b8def32b8f663e39e08c4b3;p=moodle.git add extra parameter to "hotpot_print_show_links" function so that links can be printed (the default action) or returned to the calling function as a string --- diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index b1191e8d90..f67faf4855 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -2342,7 +2342,7 @@ function hotpot_utf8_to_html_entity($char) { return '&#x'.sprintf('%04X', $dec).';'; } -function hotpot_print_show_links($course, $location, $reference, $actions='', $spacer='   ', $new_window=false) { +function hotpot_print_show_links($course, $location, $reference, $actions='', $spacer='   ', $new_window=false, $return=false) { global $CFG; if (is_string($actions)) { if (empty($actions)) { @@ -2355,7 +2355,12 @@ function hotpot_print_show_links($course, $location, $reference, $actions='', $s