function multiple_email_update_7101 in Multiple E-mail Addresses 2.x
Same name and namespace in other branches
- 7 multiple_email.install \multiple_email_update_7101()
Give 'administer multiple emails' to all roles having 'administer users'.
File
- ./
multiple_email.install, line 135 - Install file for multiple_email module
Code
function multiple_email_update_7101() {
$roles = user_roles(FALSE, 'administer users');
foreach ($roles as $rid => $role) {
user_role_grant_permissions($rid, array(
'administer multiple emails',
));
}
}