absolute_messages.install in Absolute Messages 6
Same filename and directory in other branches
Absolute Messages module (un)installation functions.
File
absolute_messages.installView 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
Name | 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 |