system_status.install in System Status 6.2
Same filename and directory in other branches
File
system_status.installView source
<?php
/**
* @file
* Clean up file for system_status
*/
require_once 'system_status_encryption.inc';
/**
* Implements hook_uninstall().
*
* Removes all settings used by the module.
*/
function system_status_uninstall() {
variable_del('system_status_service_allow_drupalstatus');
variable_del('system_status_token');
variable_del('system_status_encrypt_token');
}
/**
* Implements hook_install().
*
* Creates a unique set of tokens for this installation.
*/
function system_status_install() {
variable_set('system_status_token', SystemStatusEncryption::getToken());
variable_set('system_status_encrypt_token', SystemStatusEncryption::getToken());
}
Functions
Name | Description |
---|---|
system_status_install | Implements hook_install(). |
system_status_uninstall | Implements hook_uninstall(). |