You are here

function theme_visitors_block_view in Visitors 7

Same name and namespace in other branches
  1. 8 visitors.block.inc \theme_visitors_block_view()
  2. 7.2 visitors.block.inc \theme_visitors_block_view()
  3. 7.0 visitors.block.inc \theme_visitors_block_view()

Implement a theme function for block output.

1 theme call to theme_visitors_block_view()
visitors_block_view in ./visitors.block.inc
Implements of hook_block_view().

File

./visitors.block.inc, line 35
Display current visitor block.

Code

function theme_visitors_block_view() {
  $list_items = array();
  visitors_block_show_total_visitors($list_items);
  visitors_block_show_unique_visitors($list_items);
  visitors_block_registered_users($list_items);
  visitors_block_last_registered_user($list_items);
  visitors_block_published_nodes($list_items);
  visitors_block_user_ip($list_items);
  visitors_block_since_date($list_items);
  return theme('item_list', array(
    'items' => $list_items,
    'type' => 'ul',
  ));
}