You are here

function signup_cancel_signup_page in Signup 7

Same name and namespace in other branches
  1. 6.2 includes/signup_cancel.inc \signup_cancel_signup_page()
  2. 6 includes/signup_cancel.inc \signup_cancel_signup_page()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'signup_cancel_signup_page'
signup_menu in ./signup.module
Implements hook_menu().

File

includes/signup_cancel.inc, line 11
Code for the page to cancel a signup from a secure link.

Code

function signup_cancel_signup_page($signup, $token) {
  if (signup_valid_token($token, $signup->sid, 'cancel')) {
    return drupal_get_form('signup_cancel_link_confirm_form', $signup->sid);
  }
  drupal_set_message(t('Invalid link to cancel a signup.'), 'error');
  drupal_goto();
}