flickr_colorbox.module in Flickr 8
Flickr Colorbox Module.
File
modules/flickr_colorbox/flickr_colorbox.moduleView 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);
}
Functions
Name | Description |
---|---|
flickr_colorbox_page_attachments | Implements hook_page_attachments(). |
flickr_colorbox_theme | Implements hook_theme(). |
flickr_colorbox_theme_suggestions_flickr_photo_alter | Implements hook_theme_suggestions_HOOK_alter(). |