Drupal get total number of search results from pager


/ Published in: PHP
Save to your folder(s)

The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:


Copy this code and paste it in your HTML
  1. $GLOBALS['pager_total_items'][0];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.