You are here

function nodehierarchy_uninstall in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy.install \nodehierarchy_uninstall()
  2. 6.3 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 49

Code

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