function menu_node_update_6000 in Menu Node API 7
Same name and namespace in other branches
- 6 menu_node.install \menu_node_update_6000()
Update function to remove book module entries.
File
- ./
menu_node.install, line 76 - Install file for Menu Node API.
Code
function menu_node_update_6000() {
if (module_exists('book')) {
$result = db_query("SELECT mlid, nid FROM {book}");
foreach ($result as $data) {
menu_node_delete($data->nid, $data->mlid);
}
}
return t('Removed book data from the {menu_node} table.');
}