function image_field_caption_theme_registry_alter in Image Field Caption 7.2
Same name and namespace in other branches
- 7 image_field_caption.module \image_field_caption_theme_registry_alter()
Implements hook_theme_registry_alter().
File
- ./
image_field_caption.module, line 11 - Provides a caption textarea for image fields.
Code
function image_field_caption_theme_registry_alter(&$theme_registry) {
// Override the image_formatter function and add caption as a variable to be
// assembled by theme().
$theme_registry['image_formatter']['theme path'] = drupal_get_path('module', 'image_field_caption');
$theme_registry['image_formatter']['function'] = 'image_field_caption_image_formatter';
$theme_registry['picture_formatter']['function'] = 'image_field_caption_picture_formatter';
$theme_registry['picture_sizes_formatter']['function'] = 'image_field_caption_picture_sizes_formatter';
}