Add parameter to pager link url

1.4k Views Asked by At

Pager link points to something like www.example.com/node/100?page=1. I need pass addtional parameters through this link: www.example.com/node/100?page=1&my_param_1=1&my_param_2=2. For example I have a view with a pager. I want every link in this pager to point an anchor (for example Quicktabs tab). How it can be done?

1

There are 1 best solutions below

1
On

You need to include 'parameters' in your pager theme array:

... ['tablePager'] = array( '#type' => 'markup', '#markup' => theme('pager', array( 'element' => 0, 'parameters' => array( 'name' => 'value' ) )) ),

Taken from: https://api.drupal.org/api/drupal/includes!pager.inc/function/theme_pager/7