You are here

function bootstrap_site_alert_install in Bootstrap Site Alert 8

Same name and namespace in other branches
  1. 8.2 bootstrap_site_alert.install \bootstrap_site_alert_install()
  2. 7 bootstrap_site_alert.install \bootstrap_site_alert_install()

Implements hook_install().

File

./bootstrap_site_alert.install, line 13
The bootstrap_site_alert install file.

Code

function bootstrap_site_alert_install() {

  // Add default permissions for viewing.
  user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, [
    'view bootstrap site alerts',
  ]);
  user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, [
    'view bootstrap site alerts',
  ]);
}