You are here

function patch_manager_uninstall in Patch manager 6

Same name and namespace in other branches
  1. 7 patch_manager.install \patch_manager_uninstall()

Implementation of hook_uninstall().

File

./patch_manager.install, line 22

Code

function patch_manager_uninstall() {

  // Uninstall our fields.
  module_load_include('inc', 'content', 'includes/content.crud');
  $fields = patch_manager_field_info();
  foreach ($fields as $field) {
    content_field_instance_delete($field['field_name'], $field['type_name']);
  }

  // Remove any actions we created.
  db_query('DELETE FROM {actions} WHERE aid LIKE "patch_manager_%" LIMIT 10');

  // Notify the content module about our field formatter.
  content_notify('uninstall', 'patch_manager');
}