You are here

function spam_admin_overview_validate in Spam 5.3

Same name and namespace in other branches
  1. 6 spam.module \spam_admin_overview_validate()

Required to select something.

File

./spam.module, line 1343

Code

function spam_admin_overview_validate($form_id, $form_values) {
  $spam = array_filter($form_values['spam']);
  if (count($spam) == 0) {
    form_set_error('', t('You have note selected any spam content.'));
  }
}