From 1094f0637f0e12940b8def32b8f663e39e08c4b3 Mon Sep 17 00:00:00 2001 From: gbateson Date: Wed, 1 Aug 2007 05:35:29 +0000 Subject: [PATCH] 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 --- mod/hotpot/lib.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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