disclaimer.install in Disclaimer 6.2
Same filename and directory in other branches
Install and Uninstall processes for disclaimer.
File
disclaimer.installView source
<?php
/**
* @file
* Install and Uninstall processes for disclaimer.
*/
/**
* Create tables on install
*/
function disclaimer_install() {
drupal_set_message(t('To configure your disclaimer. Go to the <a href="!url">disclaimer setting page</a>.', array(
'!url' => url('admin/settings/disclaimer'),
)));
}
/**
* Implementation of hook_uninstall().
*/
function disclaimer_uninstall() {
// Delete all global variables
db_query("DELETE FROM {variable} WHERE name LIKE 'disclaimer_%%'");
}
Functions
Name | Description |
---|---|
disclaimer_install | Create tables on install |
disclaimer_uninstall | Implementation of hook_uninstall(). |