You are here

function imagezoom_theme in Image Zoom 8.3

Same name and namespace in other branches
  1. 8.2 imagezoom.module \imagezoom_theme()
  2. 7.2 imagezoom.module \imagezoom_theme()
  3. 7 imagezoom.module \imagezoom_theme()

Implements hook_theme().

File

./imagezoom.module, line 18
Provides an Image Zoom field formatter for Image fields.

Code

function imagezoom_theme($existing, $type, $theme, $path) {
  return [
    'imagezoom_image' => [
      'variables' => [
        'item' => NULL,
        'display_style' => NULL,
        'zoom_style' => NULL,
        'settings' => NULL,
      ],
      'template' => 'imagezoom-image',
    ],
    'imagezoom_gallery' => [
      'variables' => [
        'items' => NULL,
        'display_style' => NULL,
        'zoom_style' => NULL,
        'thumb_style' => NULL,
        'settings' => NULL,
        'image' => NULL,
        'thumbs' => NULL,
      ],
      'template' => 'imagezoom-gallery',
    ],
    'imagezoom_thumb' => [
      'variables' => [
        'item' => NULL,
        'display_style' => NULL,
        'zoom_style' => NULL,
        'thumb_style' => NULL,
        'settings' => NULL,
      ],
      'template' => 'imagezoom-thumb',
    ],
  ];
}