17 lines
406 B
PHP
17 lines
406 B
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Post update functions for Update Manager.
|
|
*/
|
|
|
|
/**
|
|
* Add 'view update notifications' to roles with 'administer site configuration'.
|
|
*/
|
|
function update_post_update_add_view_update_notifications_permission(&$sandbox) {
|
|
$roles = user_roles(FALSE, 'administer site configuration');
|
|
foreach ($roles as $role) {
|
|
$role->grantPermission('view update notifications')->save();
|
|
}
|
|
}
|