You are here

function invite_install in Invite 7.4

Same name and namespace in other branches
  1. 8 invite.install \invite_install()
  2. 5.2 invite.install \invite_install()
  3. 5 invite.install \invite_install()
  4. 6.2 invite.install \invite_install()

Implements hook_install().

File

./invite.install, line 176
Contains install and update functions for Invite.

Code

function invite_install() {

  // Set default expiry time 30 days.
  variable_set('invite_default_expiry_time', 30);
  drupal_set_message(t('Thank you for installing the <a href="@url_invite" target="blank">Invite</a>.', array(
    '@url_invite' => 'https://www.drupal.org/project/invite',
  )));

  // Notify the user they may want to install token.
  if (!module_exists('token')) {
    $t = get_t();
    drupal_set_message($t('If you install the <a href="!url" target="blank">Token</a>, Invite will be able to use token patterns.', array(
      '!url' => 'http://drupal.org/project/token',
    )));
  }
}