You are here

function signup_cancel_signup_page in Signup 6.2

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

@file Code for the page to cancel a signup from a secure link.

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

File

includes/signup_cancel.inc, line 9
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();
}