MDL-69965 moodlenet: show moodlenet in profile only if it is enabled
Amended to use plain get_config() condition.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
1fcccd8722
commit
21865b22e7
+5
-3
@@ -300,9 +300,11 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
|
||||
$mform->setDefault('maildisplay', core_user::get_property_default('maildisplay'));
|
||||
$mform->addHelpButton('maildisplay', 'emaildisplay');
|
||||
|
||||
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'));
|
||||
$mform->setType('moodlenetprofile', PARAM_NOTAGS);
|
||||
$mform->addHelpButton('moodlenetprofile', 'moodlenetprofile', 'user');
|
||||
if (get_config('tool_moodlenet', 'enablemoodlenet')) {
|
||||
$mform->addElement('text', 'moodlenetprofile', get_string('moodlenetprofile', 'user'));
|
||||
$mform->setType('moodlenetprofile', PARAM_NOTAGS);
|
||||
$mform->addHelpButton('moodlenetprofile', 'moodlenetprofile', 'user');
|
||||
}
|
||||
|
||||
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"');
|
||||
$mform->setType('city', PARAM_TEXT);
|
||||
|
||||
Reference in New Issue
Block a user