You are here

function poll_submit in Drupal 4

Same name and namespace in other branches
  1. 5 modules/poll/poll.module \poll_submit()

Implementation of hook_submit().

File

modules/poll.module, line 95
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function poll_submit(&$node) {

  // Renumber fields
  $node->choice = array_values($node->choice);
  $node->teaser = poll_teaser($node);
}