function _opigno_lms_install_i18n in Opigno LMS 7
Helper function to enable several other modules if locale is enabled (which means Opigno LMS got installed in another language).
File
- ./
opigno_lms.install, line 346 - Install, update and uninstall functions for the Opigno LMS installation profile.
Code
function _opigno_lms_install_i18n() {
// Make sure the source language is english !
variable_set('i18n_string_source_language', 'en');
if (module_exists('locale')) {
// We want to activate the field translations as well.
module_enable(array(
'i18n_field',
), TRUE);
module_enable(array(
'l10n_update',
), TRUE);
}
}