function i18n_variable_install in Internationalization 7
Implements hook_install().
File
- i18n_variable/
i18n_variable.install, line 11 - Installation file for Internationalization (i18n) module.
Code
function i18n_variable_install() {
// Set module weight for it to run before most modules, but after variable_realm
db_query("UPDATE {system} SET weight = -900 WHERE name = 'i18n_variable' AND type = 'module'");
// Update from d6, module changed name
if (variable_get('i18n_drupal6_update')) {
i18n_variable_update_7000();
i18n_variable_update_7001();
i18n_variable_update_7002();
}
// Set some minimum variables to be translated.
variable_set('variable_realm_list_language', array(
'site_name',
'site_slogan',
));
}