function image_field_caption_theme in Image Field Caption 8
Same name and namespace in other branches
- 7.2 image_field_caption.module \image_field_caption_theme()
- 7 image_field_caption.module \image_field_caption_theme()
Implements hook_theme().
File
- ./
image_field_caption.module, line 106 - Provides a caption textarea for image fields.
Code
function image_field_caption_theme() {
return [
'image_caption_formatter' => [
// As we extend the default image format, the variables passed to the callback function
// are the same than the original "callback" function ("image_formatter").
'variables' => [
'item' => NULL,
'item_attributes' => NULL,
'url' => NULL,
'image_style' => NULL,
],
],
];
}