You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
459 B
21 lines
459 B
|
6 years ago
|
<?php
|
||
|
|
/* For licensing terms, see /license.txt */
|
||
|
|
|
||
|
|
$plugin = MigrationMoodlePlugin::create();
|
||
|
|
|
||
|
|
try {
|
||
|
|
UserManager::create_extra_field(
|
||
|
|
'moodle_password',
|
||
|
|
ExtraField::FIELD_TYPE_TEXT,
|
||
|
|
$this->get_lang('MoodlePassword'),
|
||
|
|
''
|
||
|
|
);
|
||
|
|
} catch (Exception $exception) {
|
||
|
|
$message = sprintf(
|
||
|
|
$plugin->get_lang('InstallError'),
|
||
|
|
$exception->getMessage()
|
||
|
|
);
|
||
|
|
|
||
|
|
echo Display::return_message($message, 'error');
|
||
|
|
}
|