function domain_menu_access_uninstall in Domain Menu Access 7
Same name and namespace in other branches
- 8 domain_menu_access.install \domain_menu_access_uninstall()
- 6 domain_menu_access.install \domain_menu_access_uninstall()
Implements hook_uninstall().
File
- ./
domain_menu_access.install, line 11 - Domain Menu Access module (un)installation functions.
Code
function domain_menu_access_uninstall() {
$res = db_query("SELECT mlid, options FROM {menu_links}");
foreach ($res as $row) {
$options = unserialize($row->options);
if (isset($options['domain_menu_access'])) {
unset($options['domain_menu_access']);
db_update('menu_links')
->fields(array(
'options' => serialize($options),
))
->condition('mlid', $row->mlid)
->execute();
}
}
}