You are here

function smiley_settings_form_validate in Smiley 7

Settings form validate.

File

./smiley.admin.inc, line 225
Smileys administrative pages.

Code

function smiley_settings_form_validate($form, &$form_state) {
  if (!is_dir($form_state['values']['smiley_path'])) {
    form_set_error('smiley_path', t('Directory does not exist'));
  }
}