function course_poll_form_poll_view_form_alter in Course 3.x
Implements hook_form_FORMID_alter().
File
- modules/
course_poll/ course_poll.module, line 23
Code
function course_poll_form_poll_view_form_alter(&$form, FormStateInterface $form_state) {
$form['actions']['vote']['#submit'][] = 'course_poll_fulfill';
// Unset ajax so that the next step button appears,until we can make a better
// way of signalling fulfillment completion.
unset($form['actions']['vote']['#ajax']);
}