You are here

function _exif_field_widget_exif_field_separator_validate in Exif 7

implementation of #element_validate FAPI Hook

1 string reference to '_exif_field_widget_exif_field_separator_validate'
exif_field_widget_settings_form in ./exif.module
Implementation of hook_widget_settings().

File

./exif.module, line 683

Code

function _exif_field_widget_exif_field_separator_validate($element, &$form_state) {
  $exif_field_settings = $form_state['values']['instance']['widget']['settings']['exif_field_separator'];
  if (!empty($exif_field_settings) && strlen($exif_field_settings) > 1) {
    form_error($element, t('the separator is only one character long.'));
  }
}