You are here

function spaces_dashboard_users_submit in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_users_submit()

File

spaces_dashboard/spaces_dashboard.module, line 263

Code

function spaces_dashboard_users_submit($form_id, $form_values) {
  $gid = $form_values['groups'];
  $action = $form_values['actions'];
  $users = array();
  foreach ($form_values['users'] as $uid => $selected) {
    if ($selected) {
      $users[] = $uid;
    }
  }
  _spaces_dashboard_user_batch($action, $users, $gid);
  return 'group_dashboard/team';
}