You are here

function avatar_selection_config_form_validate in Avatar Selection 5

Same name and namespace in other branches
  1. 5.2 avatar_selection.module \avatar_selection_config_form_validate()
  2. 6 avatar_selection.admin.inc \avatar_selection_config_form_validate()
  3. 7 avatar_selection.admin.inc \avatar_selection_config_form_validate()

Validate the submission.

Check whether: if any of the settings have changed

File

./avatar_selection.module, line 514

Code

function avatar_selection_config_form_validate($form_id, $form_values) {
  $error = FALSE;
  if ($form_values['op'] == t('Update')) {
    if (!is_numeric($form_values['avatar_per_page'])) {
      form_set_error('avatar_per_page', t('Must be a number.'));
      $error = TRUE;
    }
  }
}