siteimprove.install in Siteimprove 7
Same filename and directory in other branches
Install file for the siteimprove module.
File
siteimprove.installView source
<?php
/**
* @file
* Install file for the siteimprove module.
*/
/**
* Implements hook_install().
*/
function siteimprove_install() {
// Request new token.
if ($token = SiteimproveUtils::requestToken()) {
variable_set('siteimprove_token', $token);
}
else {
$t = get_t();
drupal_set_message($t('There was an error requesting a new token. Please try again in a few minutes.'), 'error');
}
}
/**
* Implements hook_uninstall().
*/
function siteimprove_uninstall() {
variable_del('siteimprove_token');
variable_del('siteimprove_frontend_domain');
}
Functions
Name | Description |
---|---|
siteimprove_install | Implements hook_install(). |
siteimprove_uninstall | Implements hook_uninstall(). |