function advpoll_writein_validate in Advanced Poll 7
Same name and namespace in other branches
- 7.3 advpoll.module \advpoll_writein_validate()
- 7.2 advpoll.module \advpoll_writein_validate()
1 string reference to 'advpoll_writein_validate'
File
- ./
advpoll.module, line 557
Code
function advpoll_writein_validate($element, &$form_state, $form) {
if (empty($element['#value'])) {
form_error($element, t('Please type in your write-in choice or select a different option.'));
}
}