function hook_blazy_lightboxes_alter in Blazy 7
Same name and namespace in other branches
- 8.2 blazy.api.php \hook_blazy_lightboxes_alter()
- 8 blazy.api.php \hook_blazy_lightboxes_alter()
Alters available lightboxes for Media switch select option at Blazy UI.
Parameters
array $lightboxes: The array of lightbox options being modified.
See also
https://www.drupal.org/project/blazy_photoswipe
Related topics
1 invocation of hook_blazy_lightboxes_alter()
- BlazyManagerBase::getLightboxes in src/
BlazyManagerBase.php - Gets the supported lightboxes.
File
- ./
blazy.api.php, line 195 - Hooks and API provided by the Blazy module.
Code
function hook_blazy_lightboxes_alter(array &$lightboxes) {
$lightboxes[] = 'photoswipe';
}