You are here

function views_rss_itunes_uninstall in Views RSS: iTunes Elements 6

Same name and namespace in other branches
  1. 8 views_rss_itunes.install \views_rss_itunes_uninstall()
  2. 7 views_rss_itunes.install \views_rss_itunes_uninstall()

Implementation of hook_uninstall().

File

./views_rss_itunes.install, line 235
(Un)installation functions for Views RSS: iTunes Elements module.

Code

function views_rss_itunes_uninstall() {
  if (db_table_exists('cache_views')) {
    cache_clear_all('views_rss:', 'cache_views', TRUE);
  }
  $vocabulary_vid = variable_get('views_rss_itunes_category_vid', NULL);
  variable_del('views_rss_itunes_category_vid');
  drupal_set_message(t('Please note that taxonomy vocabulary "iTunes Category" has not been deleted, as it could still be used by site\'s content. If you don\'t need it anymore, please <a href="!taxonomy_url">delete it manually</a>.', array(
    '!taxonomy_url' => url('admin/content/taxonomy/edit/vocabulary/' . $vocabulary_vid),
  )));
}