invite.install in Invite 8
Same filename and directory in other branches
Install, update and uninstall functions for the Invite.
File
invite.installView source
<?php
/**
 * @file
 * Install, update and uninstall functions for the Invite.
 */
use Drupal\Core\Url;
/**
 * Implements hook_install().
 */
function invite_install() {
  \Drupal::messenger()
    ->addStatus(t('Thank you for installing the <a href="@url_invite" target="blank">Invite</a> project.', [
    '@url_invite' => 'https://www.drupal.org/project/invite',
  ]));
  \Drupal::messenger()
    ->addStatus(t('You can configure the <a href="@url_invite" target="blank">Invite</a> project on the <a href="@url">settings page</a>.', [
    '@url_invite' => 'https://www.drupal.org/project/invite',
    '@url' => Url::fromRoute('invite.invite_config')
      ->toString(),
  ]));
}Functions
| Name   | Description | 
|---|---|
| invite_install | Implements hook_install(). | 
