You are here

function smileys_admin_form_validate in Smileys 5

Same name and namespace in other branches
  1. 6 smileys.admin.inc \smileys_admin_form_validate()

Implementation of hook_validate().

File

./smileys.module, line 432

Code

function smileys_admin_form_validate($form_id, $form_values) {
  if (trim($form_values['acronyms']) == t('Delete Smiley')) {
    form_set_error('acronyms', t('Please enter an acronym for your smiley.'));
  }
  if ($form_values['image'] == '') {
    form_set_error('image', t('Please enter the URL of the smiley image.'));
  }
  return !form_get_errors();
}