From 4f972ee66f4486aa469899c1a46ee49e018865b0 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 28 Jul 2011 15:36:00 -0400 Subject: Issue #1222802 by franz, droplet, jhodgdon, Krasnyj: Fixed theme_pager_link() doc missing 'text' variable. --- includes/pager.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'includes/pager.inc') diff --git a/includes/pager.inc b/includes/pager.inc index 146033f1b..7a3a7be30 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -154,7 +154,7 @@ class PagerDefault extends SelectQueryExtender { * Note that no collision detection is done when setting an element ID * explicitly, so it is possible for two pagers to end up using the same ID * if both are set explicitly. - * + * * @param $element */ public function element($element) { @@ -574,13 +574,20 @@ function theme_pager_last($variables) { * * @param $variables * An associative array containing: + * - text: The link text. Also used to figure out the title attribute of the + * link, if it is not provided in $variables['attributes']['title']; in + * this case, $variables['text'] must be one of the standard pager link + * text strings that would be generated by the pager theme functions, such + * as a number or t('« first'). * - page_new: The first result to display on the linked page. * - element: An optional integer to distinguish between multiple pagers on * one page. * - parameters: An associative array of query string parameters to append to * the pager link. - * - attributes: An associative array of HTML attributes to apply to a pager - * anchor tag. + * - attributes: An associative array of HTML attributes to apply to the + * pager link. + * + * @see theme_pager() * * @ingroup themeable */ -- cgit v1.2.3