You are here

function nodewords_basic_uninstall in Nodewords: D6 Meta Tags 6.3

Same name and namespace in other branches
  1. 6 nodewords_basic/nodewords_basic.install \nodewords_basic_uninstall()
  2. 6.2 nodewords_basic/nodewords_basic.install \nodewords_basic_uninstall()

Implements hook_uninstall().

File

nodewords_basic/nodewords_basic.install, line 32
Install, update and uninstall functions for the Basic meta tags module.

Code

function nodewords_basic_uninstall() {
  if (db_table_exists('nodewords')) {
    $metatags = array(
      'abstract',
      'canonical',
      'copyright',
      'description',
      'keywords',
      'revisit-after',
      'robots',
    );
    db_query("DELETE FROM {nodewords} WHERE name IN (" . db_placeholders($metatags, 'varchar') . ")", $metatags);
  }
  variable_del('nodewords_list_robots_index_follow');
  variable_del('nodewords_list_robots_value');
}