You are here

function menu_node_update_6000 in Menu Node API 6

Same name and namespace in other branches
  1. 7 menu_node.install \menu_node_update_6000()

Update function to remove book module entries.

File

./menu_node.install, line 70
Install file for Menu Node API.

Code

function menu_node_update_6000() {
  $ret = array();
  if (module_exists('book')) {
    $result = db_query("SELECT mlid, nid FROM {book}");
    while ($data = db_fetch_object($result)) {
      menu_node_delete($data->nid, $data->mlid);
    }
  }
  return $ret;
}