comment_admin_overview_validate

  1. drupal
    1. 4.7
    2. 5 comment.module
    3. 6 comment.admin.inc
    4. 7 comment.admin.inc
Versions
4.7 comment_admin_overview_validate($form_id, $edit)
5 comment_admin_overview_validate($form_id, $form_values)
6 – 7 comment_admin_overview_validate($form, &$form_state)

We can't execute any 'Update options' if no comments were selected.

Code

modules/comment.module, line 987

<?php
function comment_admin_overview_validate($form_id, $edit) {
  $edit['comments'] = array_diff($edit['comments'], array(0));
  if (count($edit['comments']) == 0) {
    form_set_error('', t('Please select one or more comments to perform the update on.'));
    drupal_goto('admin/comment');
  }
}
?>