function views_infinite_scroll_theme in Views Infinite Scroll 7
Same name and namespace in other branches
- 6 views_infinite_scroll.module \views_infinite_scroll_theme()
- 7.2 views_infinite_scroll.module \views_infinite_scroll_theme()
Implements 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(
'variables' => array(
'tags' => array(),
'limit' => 10,
'element' => 0,
'parameters' => array(),
),
'pattern' => 'views_infinite_scroll_pager__',
);
return $hooks;
}