You are here

function signup_cancel_action in Signup 7

Same name and namespace in other branches
  1. 6.2 signup.module \signup_cancel_action()
  2. 6 signup.module \signup_cancel_action()

Action callback to cancel a given signup.

Parameters

stdClass $signup: Reference to a fully-loaded signup object to cancel.

See also

signup_load_signup()

signup_cancel_signup()

File

./signup.module, line 983
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_action($signup) {
  signup_cancel_signup($signup);
  watchdog('action', 'Canceled signup @signup_id.', array(
    '@signup_id' => $signup->sid,
  ));
}