function sitewide_alert_install in Sitewide Alert 8
Implements hook_install().
File
- ./
sitewide_alert.install, line 13 - Install, update and uninstall functions for the sitewide_alert module.
Code
function sitewide_alert_install() {
// By default allow anonymous users to view Sitewide Alerts.
user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
'view published sitewide alert entities',
]);
}