You are here

invite.install in Invite 8

Install, update and uninstall functions for the Invite.

File

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

Namesort descending Description
invite_install Implements hook_install().