You are here

function bootstrap_site_alert_install in Bootstrap Site Alert 7

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

Implements hook_install().

File

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

Code

function bootstrap_site_alert_install() {

  // Add default permissions for viewing.
  user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array(
    'view bootstrap site alerts',
  ));
  user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
    'view bootstrap site alerts',
  ));
}