You are here

function custom_pub_uninstall in Custom Publishing Options 7

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

Implements hook_uninstall().

File

./custom_pub.install, line 22
Install and update function for Custom Publishing Options.

Code

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