function _exif_field_widget_exif_field_validate in Exif 7
implementation of #element_validate FAPI Hook
1 string reference to '_exif_field_widget_exif_field_validate'
- exif_field_widget_settings_form in ./
exif.module - Implementation of hook_widget_settings().
File
- ./
exif.module, line 673
Code
function _exif_field_widget_exif_field_validate($element, &$form_state) {
$exif_field_settings = $form_state['values']['instance']['widget']['settings']['exif_field'];
if (empty($exif_field_settings)) {
form_error($element, t('you must choose at least one method to retrieve image metadata.'));
}
}