You are here

function siteimprove_install in Siteimprove 7

Same name and namespace in other branches
  1. 8 siteimprove.install \siteimprove_install()

Implements hook_install().

File

./siteimprove.install, line 11
Install file for the siteimprove module.

Code

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');
  }
}