You are here

function feedapi_node_uninstall in FeedAPI 5

Same name and namespace in other branches
  1. 6 feedapi_node/feedapi_node.install \feedapi_node_uninstall()

File

feedapi_node/feedapi_node.install, line 163

Code

function feedapi_node_uninstall() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
    case 'pgsql':
      db_query("DROP TABLE {feedapi_node_item}");
      db_query("DROP TABLE {feedapi_node_item_feed}");
      break;
  }
  node_type_delete('feedapi_node');
  variable_del('feedapi_settings_feedapi_node');
  menu_rebuild();
}