function bootstrap_site_alert_install in Bootstrap Site Alert 8.2
Same name and namespace in other branches
- 8 bootstrap_site_alert.install \bootstrap_site_alert_install()
- 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',
]);
// Need to use due to allowed_values_function in one of the configs.
drupal_flush_all_caches();
}