function poll_view_voting_validate
Validation function for processing votes
File
-
modules/
poll/ poll.module, line 743
Code
function poll_view_voting_validate($form, &$form_state) {
if (empty($form_state['values']['choice'])) {
form_set_error('choice', t('Your vote could not be recorded because you did not select any of the choices.'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.