function social_ajax_comments_preprocess_pager in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/custom/social_ajax_comments/social_ajax_comments.module \social_ajax_comments_preprocess_pager()
- 10.1.x modules/custom/social_ajax_comments/social_ajax_comments.module \social_ajax_comments_preprocess_pager()
- 10.2.x modules/custom/social_ajax_comments/social_ajax_comments.module \social_ajax_comments_preprocess_pager()
Implements hook_preprocess_HOOK().
File
- modules/
custom/ social_ajax_comments/ social_ajax_comments.module, line 206 - The Social AJAX comments module.
Code
function social_ajax_comments_preprocess_pager(&$variables) {
if (isset($variables['pager']['#tags']) && in_array(SocialCommentViewBuilder::PAGER_TAG, $variables['pager']['#tags']) && ($items =& $variables['items'])) {
_social_ajax_comments_pager($items);
_social_ajax_comments_pager($items['pages']);
}
}