You are here

absolute_messages.install in Absolute Messages 6

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

Absolute Messages module (un)installation functions.

File

absolute_messages.install
View source
<?php

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

/**
 * Implementation of 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'");
}

/**
 * Implementation of 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_6000() {
  db_query("UPDATE {system} SET weight = 5 WHERE type = 'module' AND name = 'absolute_messages'");
}

Functions

Namesort descending Description
absolute_messages_install Implementation of hook_install().
absolute_messages_uninstall Implementation of hook_uninstall().
absolute_messages_update_6000 Update weight to enable compatibility with Disable Messages