You are here

active_tags.install in Active Tags 6

Same filename and directory in other branches
  1. 6.2 active_tags.install
  2. 7.2 active_tags.install

Install & uninstall functions.

File

active_tags.install
View source
<?php

/**
 * @file
 *  Install & uninstall functions.
 */

/**
 * Implementation of hook_install().
 */
function active_tags_install() {

  // Increase module weight to prevent compatibility issues.
  $sql = "UPDATE {system}\n          SET weight = 10\n          WHERE name = 'active_tags'";
  db_query($sql);
}

/**
 * Implementation of hook_uninstall().
 */
function active_tags_uninstall() {

  // Delete settings from varible table.
  $sql = "DELETE FROM {variable}\n          WHERE name LIKE 'active_tags%'";
  db_query($sql);
}

/**
 * Update from 1.7 to 1.8.
 */
function active_tags_update_6101() {
  $ret = array();
  $sql = "UPDATE {system}\n          SET weight = 10\n          WHERE name = 'active_tags'";
  $ret[] = update_sql($sql);
  return $ret;
}

Functions

Namesort descending Description
active_tags_install Implementation of hook_install().
active_tags_uninstall Implementation of hook_uninstall().
active_tags_update_6101 Update from 1.7 to 1.8.