You are here

function superfish_admin_settings_validate in Superfish 7

Implements hook_validate().

File

./superfish.admin.inc, line 57
Functions that are only called on the admin pages.

Code

function superfish_admin_settings_validate($form, &$form_state) {
  if (!is_numeric($form_state['values']['superfish_number'])) {
    form_set_error('superfish_number', t('Please enter a number.'));
  }
}