You are here

function invite_update_11 in Invite 5

Same name and namespace in other branches
  1. 5.2 invite.install \invite_update_11()
  2. 6.2 invite.install \invite_update_11()
  3. 7.2 invite.install \invite_update_11()

Add track permission to all roles that currently have send permission.

File

./invite.install, line 325

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;
}