function theme_avatar_selection_pager_link in Avatar Selection 5.2
Same name and namespace in other branches
- 6 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.
$js_file: Javascript file to load and execute after successful ajax call.
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 1291 - 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, $js_file) {
$url = url($path);
$onclick = "return fetchPage('{$form_id}', '{$dom_identifier}', '{$url}', {$page}, '{$js_file}');";
$output .= l($text, $path, array(
'onclick' => $onclick,
), "page={$page}");
return $output;
}