You are here

function security_review_install in Security Review 8

Same name and namespace in other branches
  1. 6 security_review.install \security_review_install()

Implements hook_install().

File

./security_review.install, line 14
Install, update and uninstall functions for the security_review module.

Code

function security_review_install() {

  // Remind the user to set the permissions.
  \Drupal::messenger()
    ->addMessage(t('Security Review module enabled. You should first set the module access permissions at <a href=":url">admin/people/permissions</a>. Be sure to grant permissions to trusted users only as this module can show sensitive site information.', [
    ':url' => Url::fromRoute('user.admin_permissions')
      ->toString(),
  ]));
}