You are here

function easy_social_admin_config_extra_facebook_validate in Easy Social 7.2

Validation callback. Validates extra Facebook settings.

See also

easy_social_admin_config_extra_facebook().

File

includes/easy_social.admin.inc, line 351
Easy Social admin settings.

Code

function easy_social_admin_config_extra_facebook_validate(&$form, &$form_state) {
  if (!is_numeric($form_state['values']['easy_social_facebook_width_vertical'])) {
    form_set_error('easy_social_facebook_width_vertical', t('Vertical Widget Width must be numeric'));
  }
  else {
    if (!is_numeric($form_state['values']['easy_social_facebook_width_horizontal'])) {
      form_set_error('easy_social_facebook_width_horizontal', t('Horizontal Widget Width must be numeric'));
    }
  }
}