You are here

function hook_blazy_lightboxes_alter in Blazy 8

Same name and namespace in other branches
  1. 8.2 blazy.api.php \hook_blazy_lightboxes_alter()
  2. 7 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 function implements hook_blazy_lightboxes_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

blazy_test_blazy_lightboxes_alter in tests/modules/blazy_test/blazy_test.module
Implements hook_blazy_attach_alter().
1 invocation of hook_blazy_lightboxes_alter()
BlazyManagerBase::getLightboxes in src/BlazyManagerBase.php
Gets the supported lightboxes.

File

./blazy.api.php, line 161
Hooks and API provided by the Blazy module.

Code

function hook_blazy_lightboxes_alter(array &$lightboxes) {
  $lightboxes[] = 'photoswipe';
}