function signup_valid_token in Signup 6.2
Same name and namespace in other branches
- 6 signup.module \signup_valid_token()
- 7 signup.module \signup_valid_token()
Ensure that the given token is valid for the given sid.
1 call to signup_valid_token()
- signup_cancel_signup_page in includes/
signup_cancel.inc - @file Code for the page to cancel a signup from a secure link.
File
- ./
signup.module, line 1120 - 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_valid_token($token, $sid, $operation) {
$private_key = drupal_get_private_key();
return $token == md5("signup_token:{$sid}:{$operation}:{$private_key}");
}