home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (nodewords_verification_tags.install)

This example Drupal source code file (nodewords_verification_tags.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

16, array, bing_webmaster_center, database, db_placeholders, db_query, function, metatags, name, php, sql, system, where, yahoo_site_explorer

The nodewords_verification_tags.install Drupal example source code

<?php
// $Id: nodewords_verification_tags.install,v 1.1.2.7 2009/12/25 03:09:09 kiam Exp $

/**
 * @file
 * Installation file for Nodewords - site verification meta tags.
 */

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

/**
 * Implements hook_uninstall().
 */
function nodewords_verification_tags_uninstall() {
  if (db_table_exists('nodewords')) {
    $metatags = array(
      'bing_webmaster_center',
      'google_webmaster_tools',
      'yahoo_site_explorer',
    );

    db_query("DELETE FROM {nodewords} WHERE name IN (" . db_placeholders($metatags, 'varchar') . ")", $metatags);
  }
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal nodewords_verification_tags.install source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.