You are here

function custom_pub_uninstall in Custom Publishing Options 6

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

Implements hook_uninstall().

File

./custom_pub.install, line 10
Install and update functions for Custom Publishing Options.

Code

function custom_pub_uninstall() {
  $types = variable_get('custom_pub_types', array());
  $ret = array();
  foreach ($types as $type => $name) {
    db_drop_field($ret, 'node', $type);
  }
  variable_del('custom_pub_types');
  variable_del('custom_pub_node_types');
  return $ret;
}