You are here

function theme_top_searches_block in Top Searches 6

Same name and namespace in other branches
  1. 5 top_searches.module \theme_top_searches_block()
  2. 7 top_searches.module \theme_top_searches_block()
1 theme call to theme_top_searches_block()
top_searches_block in ./top_searches.module
Implementation of hook_block().

File

./top_searches.module, line 161

Code

function theme_top_searches_block($top_searches) {
  $show_counters = variable_get('top_searches_show_counters', 0);
  $output = '';
  foreach ($top_searches as $q) {
    $items[] = l($q->q, "search/node/" . $q->q) . ($show_counters ? ' (' . $q->counter . ')' : '');
  }
  return theme('item_list', $items);
}