You are here

isotope_views.module in Isotope (with Masonry and Packery) 7.2

Integrate with Views.

File

isotope_views/isotope_views.module
View source
<?php

/**
 * @file
 * Integrate with Views.
 */

/**
 * Implements hook_views_api().
 */
function isotope_views_views_api() {
  return array(
    'api' => 2.0,
  );
}

/**
 * Implements hook_views_infinite_scroll_selectors_alter().
 */
function isotope_views_views_infinite_scroll_selectors_alter(&$content_selector, &$items_selector, $plugin_name) {
  if ($plugin_name == 'isotope_grid') {
    $content_selector = 'div.view-content > div.item-list > ul.isotope-container';
    $items_selector = 'li.isotope-element';
  }
}

Functions

Namesort descending Description
isotope_views_views_api Implements hook_views_api().
isotope_views_views_infinite_scroll_selectors_alter Implements hook_views_infinite_scroll_selectors_alter().