function ad_remote_form_validate in Advertisement 7
Same name and namespace in other branches
- 6.3 remote/ad_remote.module \ad_remote_form_validate()
- 6 remote/ad_remote.module \ad_remote_form_validate()
- 6.2 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'));
}
}