You are here

function vud_comment_admin_settings_validate in Vote Up/Down 7

Same name and namespace in other branches
  1. 6.3 vud_comment/vud_comment.module \vud_comment_admin_settings_validate()
  2. 6.2 vud_comment/vud_comment.module \vud_comment_admin_settings_validate()

File

vud_comment/vud_comment.module, line 106
Adds a voting widget to comments.

Code

function vud_comment_admin_settings_validate($form, &$form_state) {
  if ($form_state['values']['vud_comment_dim_active'] == 1 && !is_numeric($form_state['values']['vud_comment_dim_threshold'])) {
    form_set_error('vud_comment_dim_threshold', t('You must use a numeric value for the dim threshold.'));
  }
}