function multiple_email_update_7101 in Multiple E-mail Addresses 7
Same name and namespace in other branches
- 2.x multiple_email.install \multiple_email_update_7101()
Give 'administer multiple emails' to all roles having 'administer users'.
File
- ./
multiple_email.install, line 133 - 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',
));
}
}