You are here

function nodewords_basic_uninstall in Nodewords: D6 Meta Tags 6

Same name and namespace in other branches
  1. 6.3 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 17
Installation file for nodewords_basic.module.

Code

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