function i18n_menu_install in Internationalization 7
Implements hook_install().
File
- i18n_menu/
i18n_menu.install, line 11 - Installation file for i18nmenu module.
Code
function i18n_menu_install() {
// Set module weight for it to run after core modules, but before views.
db_query("UPDATE {system} SET weight = 5 WHERE name = 'i18n_menu' AND type = 'module'");
module_load_install('i18n');
i18n_install_create_fields('menu_links', array(
'language',
'i18n_tsid',
));
i18n_install_create_fields('menu_custom', array(
'language',
'i18n_mode',
));
// If updating from D6, module changed name
if (variable_get('i18n_drupal6_update')) {
i18n_menu_update_7000();
}
}