Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The pager theme hook is defined in common.inc like this:
'pager' => array(
'arguments' => array('tags' => array(), 'limit' => 10, 'element' => 0, 'parameters' => array()),
),
The signature of theme_pager()
:
function theme_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
the 'quantity' arg is missing in the theme hook definition. .Even though 'quantity' is missing, I can still pass in that arg in the theme('pager', ...) call. Not sure why it works.
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-add_quantity_argument_in_theme_pager_registration-516640-1.patch | 611 bytes | fortis |
Comments
Comment #1
fortis CreditAttribution: fortis as a volunteer commentedStill relevant for the current 6.x.
It works because func_get_args() used to provide arguments for theme function.
However, there is small fix attached.