function advpoll_writein_merge_form_validate in Advanced Poll 5
Same name and namespace in other branches
- 6.3 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_id, $form_values) {
if ($form_values['source'] == $form_values['destination']) {
form_set_error('destination', t('The write-in cannot be merged into itself.'));
}
}