You are here

nodewords_extra.install in Nodewords: D6 Meta Tags 6.2

Same filename and directory in other branches
  1. 6 nodewords_extra/nodewords_extra.install

Install, update and uninstall functions for the Extra meta tags module.

File

nodewords_extra/nodewords_extra.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Extra meta tags module.
 */

/**
 * Implements hook_install().
 */
function nodewords_extra_install() {
  db_query("UPDATE {system} SET weight = 14 WHERE name = 'nodewords_extra' AND type = 'module'");
}

/**
 * Implements hook_uninstall().
 */
function nodewords_extra_uninstall() {
  if (db_table_exists('nodewords')) {
    $metatags = array(
      'dc.contributor',
      'dc.creator',
      'dc.date',
      'dc.publisher',
      'dc.title',
      'geourl',
      'location',
      'pics-label',
    );
    db_query("DELETE FROM {nodewords} WHERE name IN (" . db_placeholders($metatags, 'varchar') . ")", $metatags);
  }
}

/**
 * Removed support for IRCA PICS labels.
 */
function nodewords_extra_update_6106() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {nodewords} WHERE name = 'pics-label'");
  variable_del('nodewords_icra_validation_content');
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Removed support for the IRCA PICS label meta tags. See <a href="http://www.icra.org/">http://www.icra.org/</a> for more information.',
  );
  return $ret;
}

Functions

Namesort descending Description
nodewords_extra_install Implements hook_install().
nodewords_extra_uninstall Implements hook_uninstall().
nodewords_extra_update_6106 Removed support for IRCA PICS labels.