function i18n_menu_node_uninstall in Menu translation - Node 7
Implementation of hook_uninstall().
Delete all variables and remove all the node menu items settings.
File
- ./
i18n_menu_node.install, line 49 - Installation file for the Menu translation (Node) module.
Code
function i18n_menu_node_uninstall() {
$result = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', db_like('i18n_menu_node_translation') . '%', 'LIKE')
->execute();
while ($row = $result
->fetchAssoc()) {
variable_del($row['name']);
}
// Load module, as it is disabled already.
drupal_load('module', 'i18n_menu_node');
i18n_menu_node_item_translations_refresh_all(FALSE);
}