You are here

function theme_search_log_block in Search Log 6

Theme function

1 theme call to theme_search_log_block()
search_log_block in ./search_log.module
Implementation of hook_block().

File

./search_log.module, line 288
Replaces default report of top search phrases.

Code

function theme_search_log_block($items) {
  $count_enabled = variable_get('search_log_block_count', 0);
  foreach ($items as $item) {
    if ($count_enabled) {
      $count = $item['count'] ? ' (' . $item['count'] . ')' : '';
    }
    $links[] = l($item['q'], 'search/' . $item['module'] . '/' . $item['q']) . '<span class="item-count">' . $count . '</span>';
  }
  return theme('item_list', $links);
}