You are here

function signup_form_cancel in Signup 5.2

Same name and namespace in other branches
  1. 5 signup.module \signup_form_cancel()

Builder function for the cancel signup form

2 string references to 'signup_form_cancel'
signup_user_cancel_form in ./signup.module
_signup_print_current_signup in ./signup.module
Helper function to display the current user's signup information.

File

./signup.module, line 1170
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_form_cancel($node) {
  global $user;
  $form['nid'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $user->uid,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel signup'),
  );
  return $form;
}