function theme_avatar_selection_pager_link in Avatar Selection 6
Same name and namespace in other branches
- 5.2 avatar_selection.module \theme_avatar_selection_pager_link()
- 7 avatar_selection.module \theme_avatar_selection_pager_link()
Output themed pager navigation link.
Parameters
$text: Link (human-readable) text.
$path: Current page.
$page: Page number to display.
$form_id: CSS identifier for the form to modify.
$dom_identifier: CSS identifier of form element to replace.
Return value
HTML formatted link for pager.
1 theme call to theme_avatar_selection_pager_link()
- theme_avatar_selection_pager in ./
avatar_selection.module - Output themed pager navigation.
File
- ./
avatar_selection.module, line 619 - The Avatar Selection module allows the user to pick an avatar image from a list already loaded by an administrative user, and to the administrator to disable uploading other avatar files by the user.
Code
function theme_avatar_selection_pager_link($text, $path, $page, $form_id, $dom_identifier) {
$url = url($path);
$clean_urls = variable_get('clean_url', TRUE);
$onclick = "return fetchPage('{$form_id}', '{$dom_identifier}', '{$url}', {$page}, {$clean_urls});";
$output .= l($text, $path, array(
'attributes' => array(
'onclick' => $onclick,
),
'query' => "page={$page}",
));
return $output;
}