mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-69965 moodlenet: show moodlenet in profile only if it is enabled
Amended to use plain get_config() condition.
This commit is contained in:
parent
3f99bf0efe
commit
24e5c29008
1 changed files with 5 additions and 3 deletions
|
@ -301,9 +301,11 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
|
||||||
$mform->setDefault('maildisplay', core_user::get_property_default('maildisplay'));
|
$mform->setDefault('maildisplay', core_user::get_property_default('maildisplay'));
|
||||||
$mform->addHelpButton('maildisplay', 'emaildisplay');
|
$mform->addHelpButton('maildisplay', 'emaildisplay');
|
||||||
|
|
||||||
|
if (get_config('tool_moodlenet', 'enablemoodlenet')) {
|
||||||
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'));
|
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'));
|
||||||
$mform->setType('moodlenetprofile', PARAM_NOTAGS);
|
$mform->setType('moodlenetprofile', PARAM_NOTAGS);
|
||||||
$mform->addHelpButton('moodlenetprofile', 'moodlenetprofile', 'user');
|
$mform->addHelpButton('moodlenetprofile', 'moodlenetprofile', 'user');
|
||||||
|
}
|
||||||
|
|
||||||
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"');
|
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"');
|
||||||
$mform->setType('city', PARAM_TEXT);
|
$mform->setType('city', PARAM_TEXT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue