From: jerome Date: Wed, 25 Jun 2008 03:26:08 +0000 (+0000) Subject: MDL-14635 remove tags from glossary block help, merged from 19 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=293076e9ce53f762dcc7a67855967583b24aa328;p=moodle.git MDL-14635 remove tags from glossary block help, merged from 19 --- diff --git a/blocks/glossary_random/config_instance.html b/blocks/glossary_random/config_instance.html index 5b5d2ea077..081b14ec79 100644 --- a/blocks/glossary_random/config_instance.html +++ b/blocks/glossary_random/config_instance.html @@ -26,8 +26,7 @@ : config->type, ""); - helpbutton("",get_string("type","block_glossary_random"),"moodle",true,false,get_string("typehelp","block_glossary_random")); - // helpbutton("type_help", get_string("type_help", "block_glossary_random"), "block/glossary_random"); + helpbutton('newentry', get_string("type","block_glossary_random"), 'glossary'); ?> diff --git a/lang/en_utf8/block_glossary_random.php b/lang/en_utf8/block_glossary_random.php index 3f4a8ba62e..f9878b5180 100644 --- a/lang/en_utf8/block_glossary_random.php +++ b/lang/en_utf8/block_glossary_random.php @@ -20,7 +20,6 @@ $string['select_glossary'] = 'Take entries from this glossary'; $string['showconcept'] = 'Show concept (heading) for each entry'; $string['title'] = 'Title'; $string['type'] = 'How a new entry is chosen'; -$string['typehelp'] = 'Last modified entry will always display the entry that was last modified, and Random entry will choose a new one at random every time. The option Next entry will cycle through the entries in order. This last option is especially useful when a number of days is also chosen, allowing you to make a Quote of the week or a Tip of the day that everyone sees.'; $string['viewglossary'] = 'More quotes...'; $string['whichfooter'] = 'You can display links to actions of the glossary this block is associated with. The block will only display links to actions which are enabled for that glossary.'; diff --git a/lang/en_utf8/help/glossary/newentry.html b/lang/en_utf8/help/glossary/newentry.html new file mode 100644 index 0000000000..9f323de2c0 --- /dev/null +++ b/lang/en_utf8/help/glossary/newentry.html @@ -0,0 +1,5 @@ +Last modified entry will always display the entry that was last modified, +and Random entry will choose a new one at random every time. The option +Next entry will cycle through the entries in order. This last option is +especially useful when a number of days is also chosen, allowing you to make a +Quote of the week or a Tip of the day that everyone sees. diff --git a/lib/weblib.php b/lib/weblib.php index b23256ddd8..fafb8e07d5 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5873,6 +5873,13 @@ function helpbutton ($page, $title, $module='moodle', $image=true, $linktext=fal $imagetext='') { global $CFG, $COURSE; + //warning if ever $text parameter is used + //$text option won't work properly because the text needs to be always cleaned and, + // when cleaned... html tags always break, so it's unusable. + if ( isset($text) && $text!='') { + debugging('Warning: it\'s not recommended to use $text parameter in helpbutton ($page=' . $page . ', $module=' . $module . ') function'); + } + // fix for MDL-7734 if (!empty($COURSE->lang)) { $forcelang = $COURSE->lang;