function i18n_menu_node_enable in Menu translation - Node 7
Implementation of hook_enable().
File
- ./
i18n_menu_node.install, line 36 - Installation file for the Menu translation (Node) module.
Code
function i18n_menu_node_enable() {
global $i18n_menu_node_install;
// On install enable node translation for all the node menu items, otherwise
// preserve the current settings.
$force_status = $i18n_menu_node_install ? variable_get('i18n_menu_node_force_status', TRUE) : NULL;
i18n_menu_node_item_translations_refresh_all($force_status);
}