function image_field_caption_field_info_alter in Image Field Caption 8
Same name and namespace in other branches
- 7.2 image_field_caption.module \image_field_caption_field_info_alter()
Implements hook_field_info_alter().
File
- ./
image_field_caption.module, line 21 - Provides a caption textarea for image fields.
Code
function image_field_caption_field_info_alter(&$info) {
// Set a new class for the image fields.
$info['image']['class'] = '\\Drupal\\image_field_caption\\ImageCaptionItem';
}