You are here

function photos_theme in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 photos.module \photos_theme()
  2. 8.4 photos.module \photos_theme()
  3. 6.2 photos.module \photos_theme()
  4. 7.3 photos.module \photos_theme()

Implements hook_theme().

File

./photos.module, line 1004
Implementation of photos.module.

Code

function photos_theme($existing, $type, $theme, $path) {
  return [
    'photos_image' => [
      'render element' => 'elements',
    ],
    'field__photos_image__title' => [
      'base hook' => 'field',
    ],
    'photos_comment_count' => [
      'variables' => [
        'comcount' => NULL,
        'url' => NULL,
      ],
    ],
    'photos_image_block' => [
      'template' => 'photos_image_block',
      'variables' => [
        'image' => NULL,
      ],
    ],
    // Legacy templates.
    'photos_default' => [
      'template' => 'legacy/photos_default',
      'variables' => [
        'content' => NULL,
      ],
    ],
    'photos_image_view' => [
      'template' => 'legacy/photos_image_view',
      'variables' => [
        'image' => NULL,
        'display_type' => 'view',
      ],
    ],
    'photos_album_view' => [
      'template' => 'legacy/photos_album_view',
      'variables' => [
        'album' => NULL,
        'node' => NULL,
      ],
    ],
    'photos_album_links' => [
      'template' => 'legacy/photos_album_links',
      'variables' => [
        'links' => NULL,
      ],
    ],
    'photos_image_colorbox_link' => [
      'template' => 'legacy/photos_image_colorbox_link',
      'variables' => [
        'image' => NULL,
        'image_title' => NULL,
        'image_url' => NULL,
        'nid' => NULL,
      ],
    ],
    'photos_image_html' => [
      'template' => 'legacy/photos_image_html',
      'variables' => [
        'image' => NULL,
        'style_name' => NULL,
      ],
    ],
  ];
}