You are here

function node_gallery_settings_form_validate in Node Gallery 6.3

Validate the input from the global settings form.

File

./node_gallery.admin.inc, line 172

Code

function node_gallery_settings_form_validate($form, &$form_state) {
  if (!is_numeric($form_state['values']['node_gallery_sort_images_max']) || $form_state['values']['node_gallery_sort_images_max'] < 0) {
    form_error($form['node_gallery_sort_images_max'], t('The maximum number of images on the sort images page must be a positive integer.'));
  }
}