You are here

function comment_delete_settings_form_validate in Comment Delete 6

Same name and namespace in other branches
  1. 7 comment_delete.admin.inc \comment_delete_settings_form_validate()

Validates comment deletion settings.

File

./comment_delete.admin.inc, line 32

Code

function comment_delete_settings_form_validate($form, &$form_state) {
  if (!is_numeric($form_state['values']['comment_delete_clock']) || $form_state['values']['comment_delete_clock'] < 0) {
    form_set_error('comment_delete_clock', t('Deletion clock must be a numerical value greater than or equal to zero (0).'));
  }
}