You are here

function nodehierarchy_uninstall in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 nodehierarchy.install \nodehierarchy_uninstall()
  2. 6 nodehierarchy.install \nodehierarchy_uninstall()
  3. 6.2 nodehierarchy.install \nodehierarchy_uninstall()
  4. 7.4 nodehierarchy.install \nodehierarchy_uninstall()
  5. 7.2 nodehierarchy.install \nodehierarchy_uninstall()

File

./nodehierarchy.install, line 17

Code

function nodehierarchy_uninstall() {
  db_query("DROP TABLE {nodehierarchy}");
  foreach (node_get_types() as $key => $type) {
    variable_del('nh_child_' . $key);
    variable_del('nh_parent_' . $key);
    variable_del('nh_defaultparent_' . $key);
  }
}