| Versionen | |
|---|---|
| drupal6 – drupal7 | poll_cancel_form(&$form_state, $nid) |
Builds the cancel form for a poll.
modules/
<?php
function poll_cancel_form(&$form_state, $nid) {
// Store the nid so we can get to it in submit functions.
$form['#nid'] = $nid;
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Cancel your vote'),
'#submit' => array('poll_cancel')
);
$form['#cache'] = TRUE;
return $form;
}
?>
Kommentare
Kommentar hinzufügen