You are here

function ad_remote_form_validate in Advertisement 6.2

Same name and namespace in other branches
  1. 6.3 remote/ad_remote.module \ad_remote_form_validate()
  2. 6 remote/ad_remote.module \ad_remote_form_validate()
  3. 7 remote/ad_remote.module \ad_remote_form_validate()

Form validator.

File

remote/ad_remote.module, line 125
Enhances the ad module to providing cut-and-paste source snippets allowing ads to be easily displayed on remote websites.

Code

function ad_remote_form_validate($form, &$form_state) {
  if (empty($form_state['values']['group'])) {
    form_set_error('group', t('At least one group should be selected'));
  }
}