function poll_choice_js

Ajax callback for adding new choices to the poll node form.

This returns the new page content to replace the page content made obsolete by the form submission.

1 string reference to 'poll_choice_js'
poll_form in drupal/core/modules/poll/poll.module
Implements hook_form().

File

drupal/core/modules/poll/poll.module, line 431
Collects votes on different topics in the form of multiple choice questions.

Code

function poll_choice_js($form, $form_state) {
  return $form['choice_wrapper']['choice'];
}