You are here

function picture_theme in Picture 7.2

Same name and namespace in other branches
  1. 8 picture.module \picture_theme()
  2. 7 picture.module \picture_theme()

Implements hook_theme().

File

./picture.module, line 306
Picture formatter.

Code

function picture_theme() {
  return array(
    'picture' => array(
      'variables' => array(
        'style_name' => NULL,
        'path' => NULL,
        'uri' => NULL,
        'width' => NULL,
        'height' => NULL,
        'alt' => '',
        'title' => NULL,
        'attributes' => array(),
        'breakpoints' => array(),
        'timestamp' => NULL,
        'lazyload' => NULL,
        'lazyload_aspect_ratio' => NULL,
      ),
    ),
    'picture_formatter' => array(
      'variables' => array(
        'item' => NULL,
        'path' => NULL,
        'image_style' => NULL,
        'breakpoints' => array(),
        'lazyload' => NULL,
        'lazyload_aspect_ratio' => NULL,
      ),
    ),
    'picture_formatter_colorbox' => array(
      'variables' => array(
        'item' => NULL,
        'path' => NULL,
        'image_style' => NULL,
        'breakpoints' => array(),
        'colorbox_group' => array(),
        'colorbox_image_style' => NULL,
        'colorbox_group_id' => NULL,
        'colorbox_caption' => NULL,
      ),
    ),
    'picture_source' => array(
      'variables' => array(
        'srcset' => NULL,
        'media' => NULL,
        'mime_type' => NULL,
        'sizes' => NULL,
        'lazyload' => NULL,
        'lazyload_aspect_ratio' => NULL,
      ),
    ),
    'image_srcset' => array(
      'variables' => array(
        'uri' => NULL,
        'path' => NULL,
        'width' => NULL,
        'height' => NULL,
        'alt' => '',
        'title' => NULL,
        'attributes' => array(),
        'srcset' => array(),
        'sizes' => NULL,
        'lazyload' => NULL,
      ),
    ),
    'picture_sizes_formatter' => array(
      'variables' => array(
        'item' => NULL,
        'path' => NULL,
        'image_styles' => array(),
        'fallback_image_style' => NULL,
        'sizes' => NULL,
        'attributes' => array(),
        'lazyload_data_attributes' => NULL,
        'lazyload_class' => NULL,
      ),
    ),
  );
}