function elevatezoomplus_blazy_base_settings_alter in ElevateZoom Plus 7
Same name and namespace in other branches
- 8 elevatezoomplus.module \elevatezoomplus_blazy_base_settings_alter()
Implements hook_blazy_base_settings_alter().
File
- ./
elevatezoomplus.module, line 66 - Provides ElevateZoomPlus integration.
Code
function elevatezoomplus_blazy_base_settings_alter(array &$settings, $context = []) {
$classes = [
'Drupal\\blazy\\BlazyDefault',
'Drupal\\slick\\SlickDefault',
];
if (in_array($context['class'], $classes)) {
$settings += [
'elevatezoomplus' => '',
];
}
}