You are here

function feedapi_uninstall in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi.install \feedapi_uninstall()

Implementation of hook_uninstall().

File

./feedapi.install, line 122
Install file for FeedAPI module.

Code

function feedapi_uninstall() {
  drupal_uninstall_schema('feedapi');

  // Delete variables site-wide
  variable_del('feedapi_allowed_html_tags');
  variable_del('feedapi_allow_html_all');
  variable_del('feedapi_cron_percentage');

  // Delete variables per-content-type
  $types = array_keys(node_get_types());
  foreach ($types as $type) {
    variable_del('feedapi_settings_' . $type);
  }
}