function blazy_blazy_settings_alter in Blazy 8
Same name and namespace in other branches
- 8.2 blazy.module \blazy_blazy_settings_alter()
Implements hook_blazy_settings_alter().
File
- ./
blazy.module, line 134 - Provides basic Blazy integration for lazy loading and multi-serving images.
Code
function blazy_blazy_settings_alter(array &$build, $items) {
$settings =& $build['settings'];
// Sniffs for Views to allow block__no_wrapper, views_no_wrapper, etc.
if (function_exists('views_get_current_view') && ($view = views_get_current_view())) {
$settings['view_name'] = $view->storage
->id();
$settings['current_view_mode'] = $view->current_display;
}
}