You are here

flickr_colorbox.module in Flickr 8

Flickr Colorbox Module.

File

modules/flickr_colorbox/flickr_colorbox.module
View source
<?php

/**
 * @file
 * Flickr Colorbox Module.
 */

/**
 * Implements hook_theme_suggestions_HOOK_alter().
 */
function flickr_colorbox_theme_suggestions_flickr_photo_alter(array &$suggestions, array $variables) {
  $suggestions[] = 'flickr_photo_colorbox';
}

/**
 * Implements hook_theme().
 */
function flickr_colorbox_theme() {
  return [
    'flickr_photo_colorbox' => [
      'variables' => [],
    ],
  ];
}

/**
 * Implements hook_page_attachments().
 */
function flickr_colorbox_page_attachments(array &$page) {
  \Drupal::service('colorbox.attachment')
    ->attach($page);
}