function invite_update_11 in Invite 7.2
Same name and namespace in other branches
- 5.2 invite.install \invite_update_11()
- 5 invite.install \invite_update_11()
- 6.2 invite.install \invite_update_11()
Add track permission to all roles that currently have send permission.
File
- ./
invite.install, line 325 - Installation file for invite module.
Code
function invite_update_11() {
$ret = array();
foreach (array_keys(user_roles(0, 'send invitations')) as $rid) {
_invite_add_permission($rid, 'track invitations');
}
$ret[] = array(
'query' => 'The access permissions have been updated by the invite module.',
'success' => TRUE,
);
return $ret;
}