You are here

function feeds_uninstall in Feeds 7.2

Same name and namespace in other branches
  1. 8.3 feeds.install \feeds_uninstall()
  2. 8.2 feeds.install \feeds_uninstall()
  3. 6 feeds.install \feeds_uninstall()

Implements hook_uninstall().

File

./feeds.install, line 68
Schema definitions install/update/uninstall hooks.

Code

function feeds_uninstall() {
  variable_del('cache_class_cache_feeds_http');
  variable_del('cache_flush_cache_feeds_http');
  variable_del('default_feeds_importer');
  variable_del('feeds_debug');
  variable_del('feeds_http_file_cache_dir');
  variable_del('feeds_importer_class');
  variable_del('feeds_in_progress_dir');
  variable_del('feeds_library_dir');
  variable_del('feeds_never_use_curl');
  variable_del('feeds_process_limit');
  variable_del('feeds_reschedule');
  variable_del('feeds_source_class');
  variable_del('feeds_sync_cache_feeds_http_interval');
  variable_del('feeds_sync_cache_feeds_http_last_check');
  variable_del('feeds_use_mbstring');
  variable_del('http_request_timeout');

  // Remove Feeds related jobs from job scheduler.
  $names = db_or()
    ->condition('name', 'feeds_source_import')
    ->condition('name', 'feeds_source_clear')
    ->condition('name', 'feeds_source_expire')
    ->condition('name', 'feeds_push_unsubscribe');
  db_delete('job_schedule')
    ->condition($names)
    ->execute();
}