Chamilo is a learning management system focused on ease of use and accessibility
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.
 
 
 
 
 
 
chamilo-lms/plugin/migrationmoodle/install.php

20 lines
461 B

<?php
/* For licensing terms, see /license.txt */
$plugin = MigrationMoodlePlugin::create();
try {
UserManager::create_extra_field(
'moodle_password',
ExtraField::FIELD_TYPE_TEXT,
$plugin->get_lang('MoodlePassword'),
''
);
} catch (Exception $exception) {
$message = sprintf(
$plugin->get_lang('InstallError'),
$exception->getMessage()
);
echo Display::return_message($message, 'error');
}