MDL-28337 add parameters explanation in URL resource configuration

This commit is contained in:
Petr Skoda 2011-07-22 22:16:52 +02:00
parent 6884b598f3
commit f08e5e984a
2 changed files with 4 additions and 2 deletions

View File

@ -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)';

View File

@ -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;