function signup_cancel_multiple_confirm_submit in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/node_admin.inc \signup_cancel_multiple_confirm_submit()
Submit handler for the confirm form to cancel multiple signups.
File
- ./
signup.module, line 2015 - The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…
Code
function signup_cancel_multiple_confirm_submit($form_id, $form_values) {
$nid = $form_values['nid'];
foreach ($form_values['users'] as $key) {
$matches = array();
if (preg_match('/__anon:(.*)/', $key, $matches)) {
$uid = 0;
$anon_mail = $matches[1];
}
else {
$uid = $key;
$anon_mail = NULL;
}
signup_cancel_signup($uid, $nid, $anon_mail);
}
unset($_SESSION['signup_cancel_multiple_users']);
return 'node/' . $nid . '/signups';
}