You are here

function nodewords_extra_uninstall in Nodewords: D6 Meta Tags 6

Same name and namespace in other branches
  1. 6.2 nodewords_extra/nodewords_extra.install \nodewords_extra_uninstall()

Implements hook_uninstall().

File

nodewords_extra/nodewords_extra.install, line 52
Installation file for nodewords_extra.module.

Code

function nodewords_extra_uninstall() {
  if (db_table_exists('nodewords')) {
    $metatags = array(
      'dcterms.contributor',
      'dcterms.creator',
      'dcterms.date',
      'dcterms.publisher',
      'dcterms.title',
      'geourl',
      'location',
    );
    db_query("DELETE FROM {nodewords} WHERE name IN (" . db_placeholders($metatags, 'varchar') . ")", $metatags);
  }
}