1 comment.admin.inc comment_admin_overview_validate($form, &$form_state)

Form validation handler for comment_admin_overview().

See also

comment_admin_overview_submit()

File

core/modules/comment/comment.admin.inc, line 163
Admin page callbacks for the Comment module.

Code

function comment_admin_overview_validate($form, &$form_state) {
  $form_state['values']['comments'] = array_diff($form_state['values']['comments'], array(0));
  // We can't execute any of the available operations if no comments were
  // selected.
  if (count($form_state['values']['comments']) == 0) {
    form_set_error('', t('Select one or more comments to perform the update on.'));
  }
}