You are here

absolute_messages.install in Absolute Messages 7

Same filename and directory in other branches
  1. 6 absolute_messages.install

Absolute Messages module (un)installation functions.

File

absolute_messages.install
View source
<?php

/**
 * @file
 * Absolute Messages module (un)installation functions.
 */

/**
 * Implements hook_install().
 */
function absolute_messages_install() {

  // Absolute Messages needs to load after Disable Messages if present
  db_query("UPDATE {system} SET weight = 5 WHERE type = 'module' AND name = 'absolute_messages'");
}

/**
 * Implements hook_uninstall().
 */
function absolute_messages_uninstall() {
  $query = "DELETE FROM {variable} WHERE name LIKE 'absolute_messages_%'";
  db_query($query);
}

/**
 * Update weight to enable compatibility with Disable Messages
 */
function absolute_messages_update_7000() {
  db_query("UPDATE {system} SET weight = 5 WHERE type = 'module' AND name = 'absolute_messages'");
}

Functions

Namesort descending Description
absolute_messages_install Implements hook_install().
absolute_messages_uninstall Implements hook_uninstall().
absolute_messages_update_7000 Update weight to enable compatibility with Disable Messages