You are here

function auto_menutitle_uninstall in Auto Menu Title 6.2

Same name and namespace in other branches
  1. 8 auto_menutitle.install \auto_menutitle_uninstall()
  2. 7 auto_menutitle.install \auto_menutitle_uninstall()

Implementation of hook_uninstall().

File

./auto_menutitle.install, line 66
auto_menutitle alters the menu_links table for storing menu settings. It also stores a number of variables in the variable table too. This file handles the install/uninstall of this data, cleanly.

Code

function auto_menutitle_uninstall() {
  $ret = array();
  foreach (node_get_types('names') as $type => $type_name) {
    variable_del('amt_' . $type);
    variable_del('amt_collapsed_' . $type);
  }
  db_drop_field($ret, 'menu_links', 'automenu_state');
  return $ret;
}