You are here

siteimprove.install in Siteimprove 7

Same filename and directory in other branches
  1. 8 siteimprove.install

Install file for the siteimprove module.

File

siteimprove.install
View 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