Form API validation callback.

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

File

./exif.module, line 810

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.'));
    }
}