You are here

function zopim_admin_settings_form_validate in Zopim Live Chat 6.2

Same name in this branch
  1. 6.2 includes/zopim-account.admin.inc \zopim_admin_settings_form_validate()
  2. 6.2 includes/zopim-customize.admin.inc \zopim_admin_settings_form_validate()
  3. 6.2 includes/zopim-visibility.admin.inc \zopim_admin_settings_form_validate()
Same name and namespace in other branches
  1. 6 zopim.admin.inc \zopim_admin_settings_form_validate()
  2. 7 zopim.admin.inc \zopim_admin_settings_form_validate()

File

includes/zopim-customize.admin.inc, line 200
Administrative page callbacks for the zopim module.

Code

function zopim_admin_settings_form_validate($form, &$form_state) {
  $font_color = $form_state['values']['theming']['color'];
  if (!empty($font_color) && !zopim_is_hex_code($font_color)) {
    form_set_error('theming][color', t('Font Color should be a valid hexidecimal code.'));
  }
}