You are here

views_isotope_views.module in Views Isotope (Deprecated) 7.2

Integrate with Views.

File

views/views_isotope_views.module
View source
<?php

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

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

/**
 * Implements hook_views_infinite_scroll_selectors_alter().
 */
function views_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
views_isotope_views_views_api Implements hook_views_api().
views_isotope_views_views_infinite_scroll_selectors_alter Implements hook_views_infinite_scroll_selectors_alter().