You are here

function views_infinite_scroll_theme in Views Infinite Scroll 6

Same name and namespace in other branches
  1. 7.2 views_infinite_scroll.module \views_infinite_scroll_theme()
  2. 7 views_infinite_scroll.module \views_infinite_scroll_theme()

Implementation of hook_theme().

File

./views_infinite_scroll.module, line 17

Code

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;
}