function theme_mostpopular_items in Drupal Most Popular 6
Themes a list of the most popular items for the given service.
Calls theme('mostpopular_item', $item, $sid, $iid) for each list item.
Parameters
array<MostPopularItem> $items: A list of most popular items to show.
integer $sid: The service ID of the currently-selected service.
integer $iid: The interval ID of the currently-selected interval.
1 theme call to theme_mostpopular_items()
- mostpopular_get_items in ./
mostpopular.block.inc - Gets a themed list of the most popular items for a given service and interval.
File
- ./
mostpopular.block.inc, line 259 - Defines all the pages, blocks and themes for rendering the most popular data to general users.
Code
function theme_mostpopular_items($items, $sid, $iid) {
if (empty($items)) {
return theme('mostpopular_items_none');
}
$list = array();
foreach ($items as $item) {
$list[] = theme('mostpopular_item', $item, $sid, $iid);
}
return theme('item_list', $list, NULL, 'ul', array(
'class' => 'mostpopular--items',
));
}