function nice_menus_uninstall in Nice Menus 6.2
Same name and namespace in other branches
- 7.3 nice_menus.install \nice_menus_uninstall()
- 7.2 nice_menus.install \nice_menus_uninstall()
Implements hook_uninstall().
File
- ./
nice_menus.install, line 11 - Update functions for Nice menus.
Code
function nice_menus_uninstall() {
// Remove all the configuration variables added by the module.
db_query("DELETE FROM {variable} WHERE name LIKE 'nice_menus_%'");
// Remove all the block configurations of the module.
if (module_exists('block')) {
db_query("DELETE FROM {blocks} WHERE module = 'nice_menus'");
db_query("DELETE FROM {blocks_roles} WHERE module = 'nice_menus'");
}
cache_clear_all();
}