From f08e5e984a518d2b3ffcfa68522ebaecec1e2863 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 22 Jul 2011 22:16:52 +0200 Subject: [PATCH] MDL-28337 add parameters explanation in URL resource configuration --- mod/url/lang/en/url.php | 3 ++- mod/url/mod_form.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/url/lang/en/url.php b/mod/url/lang/en/url.php index 318af1beb1e..be6867d4743 100644 --- a/mod/url/lang/en/url.php +++ b/mod/url/lang/en/url.php @@ -50,8 +50,9 @@ $string['modulenameplural'] = 'URLs'; $string['neverseen'] = 'Never seen'; $string['optionsheader'] = 'Options'; $string['page-mod-url-x'] = 'Any URL module page'; -$string['parameterinfo'] = 'parameter=variable'; +$string['parameterinfo'] = '&parameter=variable'; $string['parametersheader'] = 'Parameters'; +$string['parametersheader_help'] = 'Some internal Moodle variables may be automatically appended to the URL. Type your name for the parameter into each text box(es) and then select the required matching variable.'; $string['pluginadministration'] = 'URL module administration'; $string['pluginname'] = 'URL'; $string['popupheight'] = 'Popup height (in pixels)'; diff --git a/mod/url/mod_form.php b/mod/url/mod_form.php index ec153125a9d..da6a7209dc7 100644 --- a/mod/url/mod_form.php +++ b/mod/url/mod_form.php @@ -108,7 +108,8 @@ class mod_url_mod_form extends moodleform_mod { //------------------------------------------------------- $mform->addElement('header', 'parameterssection', get_string('parametersheader', 'url')); - + $mform->addElement('static', 'parametersinfo', '', get_string('parametersheader_help', 'url')); + $mform->setAdvanced('parametersinfo'); if (empty($this->current->parameters)) { $parcount = 5;