You are here

function photos_theme in Album Photos 8.4

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

Implements hook_theme().

File

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

Code

function photos_theme($existing, $type, $theme, $path) {
  return [
    'photos_comment_count' => [
      'function' => 'photos_theme_photos_comment_count',
      'variables' => [
        'comcount' => NULL,
        'url' => NULL,
      ],
    ],
    'photos_default' => [
      'template' => 'photos_default',
      'variables' => [
        'content' => NULL,
      ],
    ],
    'photos_image_view' => [
      'template' => 'photos_image_view',
      'variables' => [
        'image' => NULL,
        'display_type' => 'view',
      ],
    ],
    'photos_image_block' => [
      'template' => 'photos_image_block',
      'variables' => [
        'image' => NULL,
      ],
    ],
    'photos_block' => [
      'function' => 'photos_theme_photos_block',
      'variables' => [
        'images' => NULL,
        'block_type' => NULL,
      ],
    ],
    'photos_album_view' => [
      'template' => 'photos_album_view',
      'variables' => [
        'album' => NULL,
        'node' => NULL,
      ],
    ],
    'photos_albumlist' => [
      'template' => 'photos_albumlist',
      'variables' => [
        'image' => NULL,
      ],
    ],
    'photos_album_links' => [
      'template' => 'photos_album_links',
      'variables' => [
        'links' => NULL,
      ],
    ],
    'photos_image_colorbox_link' => [
      'template' => 'photos_image_colorbox_link',
      'variables' => [
        'image' => NULL,
        'image_title' => NULL,
        'image_url' => NULL,
        'nid' => NULL,
      ],
    ],
    'photos_image_html' => [
      'template' => 'photos_image_html',
      'variables' => [
        'image' => NULL,
        'style_name' => NULL,
      ],
    ],
  ];
}