You are here

function spam_reported_nodes_overview_validate in Spam 5

Validation code for the spam_reported_nodes_overview form/function

File

./spam.module, line 2418

Code

function spam_reported_nodes_overview_validate($form_id, $form_values) {
  $form_values['nodes'] = array_diff($form_values['nodes'], array(
    0,
  ));
  if (count($form_values['nodes']) == 0) {
    form_set_error('', t('Please select one or more nodes to perform the update on.'));
    drupal_goto('admin/content/node/list/reported');
  }
}