function invite_install in Invite 8
Same name and namespace in other branches
- 5.2 invite.install \invite_install()
- 5 invite.install \invite_install()
- 6.2 invite.install \invite_install()
- 7.4 invite.install \invite_install()
Implements hook_install().
File
- ./
invite.install, line 13 - Install, update and uninstall functions for the Invite.
Code
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(),
]));
}