function smart_paging_preprocess_views_view in Smart Paging 7
Same name and namespace in other branches
- 7.2 smart_paging.module \smart_paging_preprocess_views_view()
Intercept the views_view template to alter the pager links when AJAX is enabled
File
- ./
smart_paging.module, line 492 - Provides smart paging capability to Drupal contents.
Code
function smart_paging_preprocess_views_view(&$vars) {
if ($vars['view']->use_ajax && isset($vars['pager'])) {
$vars['pager'] = preg_replace_callback('/href="(.+?)"/', '_smart_paging_href_replace', $vars['pager']);
}
}