2 // $Id: signup_cancel_form.inc,v 1.1.2.1 2008/12/19 01:00:35 dww Exp $
7 * Code for the signup cancel form.
11 * Submit handler for the cancel signup form.
14 * The form being submitted.
16 * The state of the submitted form, including the values.
18 function signup_cancel_form_submit($form, &$form_state) {
19 signup_cancel_signup($form_state['values']['sid']);
23 * Form builder for the cancel signup form.
26 * The form state from the FormAPI.
28 * The signup ID (sid) to cancel (primary key of the {signup_log} table).
30 function signup_cancel_form(&$form_state, $sid) {
31 $form['sid'] = array('#type' => 'value', '#value' => $sid);
32 $form['submit'] = array('#type' => 'submit', '#value' => t('Cancel signup'));