You are here

function signup_cancel_multiple_confirm_submit in Signup 6.2

Same name and namespace in other branches
  1. 5.2 signup.module \signup_cancel_multiple_confirm_submit()

Submit handler for the confirm form to cancel multiple signups.

1 string reference to 'signup_cancel_multiple_confirm_submit'
signup_cancel_multiple_confirm in includes/node_admin.inc
Builds the confirm form when canceling multiple signups from node/N/signups.

File

includes/node_admin.inc, line 215
Code related to the signup administration tab on each node.

Code

function signup_cancel_multiple_confirm_submit($form, &$form_state) {
  $nid = $form_state['values']['nid'];
  if (user_access('cancel signups')) {
    foreach ($form_state['values']['users'] as $key) {
      signup_cancel_signup($key);
    }
  }
  else {
    drupal_set_message(t('You do not have permission to cancel signups.'), 'error');
  }
  $form_state['redirect'] = 'node/' . $nid . '/signups';
  unset($_SESSION['signup_cancel_multiple_users']);
}