views_infinite_scroll.module 728 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?php
/**
 * @file
 */

/**
 * Implementation of hook_views_api().
 */
function views_infinite_scroll_views_api() {
Remon Georgy's avatar
Remon Georgy committed
10
  return array('api' => '3.0-alpha1');
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
}

/**
 * Implementation of hook_theme().
 */
function views_infinite_scroll_theme() {
  $path = drupal_get_path('module', 'views_infinite_scroll');

  // Some quasi clever array merging here.
  $base = array(
    'file' => 'views_infinite_scroll_theme.inc',
    'path' => "$path/theme",
  );

  // Our extra version of pager from pager.inc
  $hooks['views_infinite_scroll_pager'] = $base + array(
    'arguments' => array('tags' => array(), 'limit' => 10, 'element' => 0, 'parameters' => array()),
    'pattern' => 'views_infinite_scroll_pager__',
  );
  return $hooks;
}