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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fortis’s picture

Version: 6.12 » 6.x-dev
Issue summary: View changes
Status: Active » Needs review
FileSize
611 bytes

Still 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.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.