views_infinite_scroll.module 753 Bytes
Newer Older
1
<?php
2
// $Id:
3 4 5 6 7
/**
 * @file
 */

/**
Remon Georgy's avatar
Remon Georgy committed
8
 * Implements hook_views_api().
9 10
 */
function views_infinite_scroll_views_api() {
Remon Georgy's avatar
Remon Georgy committed
11
  return array('api' => '3.0-alpha1');
12 13 14
}

/**
Remon Georgy's avatar
Remon Georgy committed
15
 * Implements hook_theme().
16 17 18 19 20 21 22 23 24 25 26 27
 */
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(
Remon Georgy's avatar
Remon Georgy committed
28 29 30 31 32 33
    'variables' => array(
      'tags' => array(),
      'limit' => 10,
      'element' => 0,
      'parameters' => array(),
    ),
34 35 36 37
    'pattern' => 'views_infinite_scroll_pager__',
  );
  return $hooks;
}