You are here

function blazy_views_pre_render in Blazy 7

Same name and namespace in other branches
  1. 8.2 blazy.module \blazy_views_pre_render()
  2. 8 blazy.module \blazy_views_pre_render()

Implements hook_views_pre_render().

File

./blazy.runtime.inc, line 188
Provides basic Blazy integration for lazy loading and multi-serving images.

Code

function blazy_views_pre_render($view) {

  // Pass Blazy Views field settings into Blazy Grid if found.
  if (isset($view) && isset($view->field['blazy_file']) && ($blazy = $view->field['blazy_file'])) {
    if ($view->style_plugin->plugin_name == 'blazy') {
      $view->style_plugin->options = array_merge((array) $blazy
        ->mergedViewsSettings(), $view->style_plugin->options);
    }
  }
}