function theme_activity_pager in Heartbeat 7
Returns HTML for a query pager for heartbeat activity.
Parameters
$variables: An associative array containing:
- tags: An array of labels for the controls in the pager.
- 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 links.
- quantity: The number of pages in the list.
1 theme call to theme_activity_pager()
- HeartbeatStream::render in includes/
heartbeatstream.inc - Render().
File
- ./
heartbeat.module, line 1480 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function theme_activity_pager($variables) {
if ($variables['stream']
->hasMoreMessages()) {
$last_message = end($variables['stream']->messages);
$link = heartbeat_stream_more_link($variables['stream'], $last_message->timestamp);
return $link;
}
return '';
}