function image_field_caption_settings_validate in Image Field Caption 7
The module's settings form validation handler.
File
- ./
image_field_caption.module, line 84 - Provides a caption textarea for image fields.
Code
function image_field_caption_settings_validate(&$form, &$form_state) {
if ($form_state['values']['image_field_caption_allowed_tags'] == '') {
form_set_error('image_field_caption_allowed_tags', t('You must enter at least one html tag. For example: ') . image_field_captions_allowed_tags());
}
}