function blazy_photoswipe_blazy_settings_alter in Blazy PhotoSwipe 8
Implements hook_blazy_settings_alter().
File
- ./
blazy_photoswipe.module, line 53 - Provides a simple Blazy PhotoSwipe integration.
Code
function blazy_photoswipe_blazy_settings_alter(array &$build, $items) {
$settings =& $build['settings'];
// Tell Blazy we are supporting rich box: local video within lightbox.
if (!empty($settings['media_switch']) && $settings['media_switch'] == 'photoswipe') {
$config = blazy()
->configLoad();
$settings['_photoswipe5'] = !empty($config['extras']['photoswipe']) && $config['extras']['photoswipe'] == 5;
$settings['_richbox'] = TRUE;
}
}