You are here

function feedapi_uninstall in FeedAPI 5

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

Implementation of hook_uninstall().

File

./feedapi.install, line 68

Code

function feedapi_uninstall() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
    case 'pgsql':
      db_query("DROP TABLE {feedapi}");
      db_query("DROP TABLE {feedapi_stat}");
      break;
  }
  variable_del("feedapi_show_feed_origin_link");
  variable_del("feedapi_refresh_once");
  variable_del("feedapi_form_create");
  variable_del("feedapi_cron_max");
  variable_del("feedapi_allowed_html_tags");
  variable_del("feedapi_allow_html_all");
  variable_del("feedapi_statistics_queue");
  variable_del('feedapi_cron_percentage');
  $types = array_keys(node_get_types());
  foreach ($types as $type) {
    variable_del("feedapi_settings_" . $type);
    variable_del("feedapi_" . $type);
  }
}