You are here

function smileys_admin_form_validate in Smileys 6

Same name and namespace in other branches
  1. 5 smileys.module \smileys_admin_form_validate()

Implementation of hook_validate().

File

./smileys.admin.inc, line 293

Code

function smileys_admin_form_validate($form, &$form_state) {
  if (trim($form_state['values']['acronyms']) == '') {
    form_set_error('acronyms', t('Please enter an acronym for your smiley.'));
  }
  if ($form_state['values']['image'] == '') {
    form_set_error('image', t('Please enter the URL of the smiley image.'));
  }
}