You are here

function advpoll_writein_merge_form_validate in Advanced Poll 6

Same name and namespace in other branches
  1. 5 advpoll.module \advpoll_writein_merge_form_validate()
  2. 6.3 advpoll.module \advpoll_writein_merge_form_validate()
  3. 6.2 advpoll.module \advpoll_writein_merge_form_validate()

File

./advpoll.module, line 1511
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.'));
  }
}