mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-13151 add a new language string: phone2, thanks for your idea, Jams Ballard.
This commit is contained in:
parent
6f87ef52b9
commit
55ac3d6f21
6 changed files with 6 additions and 5 deletions
|
@ -233,7 +233,7 @@ class admin_uploaduser_form2 extends moodleform {
|
|||
$mform->setType('phone1', PARAM_CLEAN);
|
||||
$mform->setAdvanced('phone1');
|
||||
|
||||
$mform->addElement('text', 'phone2', get_string('phone'), 'maxlength="20" size="25"');
|
||||
$mform->addElement('text', 'phone2', get_string('phone2'), 'maxlength="20" size="25"');
|
||||
$mform->setType('phone2', PARAM_CLEAN);
|
||||
$mform->setAdvanced('phone2');
|
||||
|
||||
|
|
|
@ -1164,6 +1164,7 @@ $string['personal'] = 'Personal';
|
|||
$string['personalprofile'] = 'Personal profile';
|
||||
$string['pictureof'] = 'Picture of $a';
|
||||
$string['phone'] = 'Phone';
|
||||
$string['phone2'] = 'Mobile Phone';
|
||||
$string['phpinfo'] = 'PHP info';
|
||||
$string['pleaseclose'] = 'Please close this window now.';
|
||||
$string['plugincheck'] = 'Plugins check';
|
||||
|
|
|
@ -97,7 +97,7 @@ class resource_file extends resource_base {
|
|||
'value' => $USER->icq),
|
||||
'userphone1' => array('langstr' => get_string('phone').' 1',
|
||||
'value' => $USER->phone1),
|
||||
'userphone2' => array('langstr' => get_string('phone').' 2',
|
||||
'userphone2' => array('langstr' => get_string('phone2').' 2',
|
||||
'value' => $USER->phone2),
|
||||
'userinstitution' => array('langstr' => get_string('institution'),
|
||||
'value' => $USER->institution),
|
||||
|
|
|
@ -106,7 +106,7 @@ function set_parameters() {
|
|||
'value' => $USER->icq),
|
||||
'userphone1' => array('langstr' => get_string('phone').' 1',
|
||||
'value' => $USER->phone1),
|
||||
'userphone2' => array('langstr' => get_string('phone').' 2',
|
||||
'userphone2' => array('langstr' => get_string('phone2').' 2',
|
||||
'value' => $USER->phone2),
|
||||
'userinstitution' => array('langstr' => get_string('institution'),
|
||||
'value' => $USER->institution),
|
||||
|
|
|
@ -262,7 +262,7 @@ function useredit_shared_definition(&$mform) {
|
|||
$mform->addElement('text', 'phone1', get_string('phone'), 'maxlength="20" size="25"');
|
||||
$mform->setType('phone1', PARAM_CLEAN);
|
||||
|
||||
$mform->addElement('text', 'phone2', get_string('phone'), 'maxlength="20" size="25"');
|
||||
$mform->addElement('text', 'phone2', get_string('phone2'), 'maxlength="20" size="25"');
|
||||
$mform->setType('phone2', PARAM_CLEAN);
|
||||
|
||||
$mform->addElement('text', 'address', get_string('address'), 'maxlength="70" size="25"');
|
||||
|
|
|
@ -244,7 +244,7 @@
|
|||
print_row(get_string("phone").":", "$user->phone1");
|
||||
}
|
||||
if ($user->phone2) {
|
||||
print_row(get_string("phone").":", "$user->phone2");
|
||||
print_row(get_string("phone2").":", "$user->phone2");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue