You are here

function spam_content_comment_admin_overview_validate in Spam 6

Duplicate function from comment module so we can set correct goto url.

File

content/spam_content_comment.inc, line 373
Include file for integration with comments.

Code

function spam_content_comment_admin_overview_validate($form, &$form_state) {
  $form_state['values']['comments'] = array_diff($form_state['values']['comments'], array(
    0,
  ));
  if (count($form_state['values']['comments']) == 0) {
    form_set_error('', t('Please select one or more comments to perform the update on.'));
    drupal_goto('admin/content/comment/list/spam');
  }
}