function advpoll_writein_merge_form_validate in Advanced Poll 6.3
Same name and namespace in other branches
- 5 advpoll.module \advpoll_writein_merge_form_validate()
- 6 advpoll.module \advpoll_writein_merge_form_validate()
- 6.2 advpoll.module \advpoll_writein_merge_form_validate()
File
- ./
advpoll.module, line 1606 - Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.
Code
function advpoll_writein_merge_form_validate($form, &$form_state) {
if ($form_state['values']['source'] == $form_state['values']['destination']) {
form_set_error('destination', t('The write-in cannot be merged into itself.'));
}
}