. ** $limit: how many nodes are displayed per page ** $element: support for multiple pagers per page (specify which ** this is) ** $type: allows for distinction between pagers on main page and ** admin page, etc. Supported types are "default", "admin" ** and "simple". */ function pager_display($tags = "", $limit = 10, $element = 0, $type = "default") { return theme_invoke("pager_display_". $type, $tags, $limit, $element); } /* ** DEFAULT PAGER: ** When writing themes, you can rewrite this pager function in your ** theme. This is the most common pager type, and thus the main one ** to re-write in your theme. */ function pager_display_default($tags = "", $limit = 10, $element = 0) { $output .= "
". pager_first(($tags[0] ? $tags[0] : t("first page")), $limit, $element) ." | "; $output .= "". pager_previous(($tags[1] ? $tags[1] : t("previous page")), $limit, $element) ." | "; $output .= "". pager_list($limit, $element, ($tags[2] ? $tags[2] : 9 )) ." | "; $output .= "". pager_next(($tags[3] ? $tags[3] : t("next page")), $limit, $element) ." | "; $output .= "". pager_last(($tags[4] ? $tags[4] : t("last page")), $limit, $element) ." | "; $output .= "