You are here

function theme_search_log_summary in Search Log 7

Same name and namespace in other branches
  1. 6 search_log.admin.inc \theme_search_log_summary()

Theme report summary information.

1 theme call to theme_search_log_summary()
search_log_report in ./search_log.admin.inc
Display search log report.

File

./search_log.admin.inc, line 475
Admin page callbacks file for the search_log module.

Code

function theme_search_log_summary($variables) {
  $output = '<div><strong>' . t('Total searches') . ':</strong> ' . $variables['total'] . '</div>';
  $output .= '<div><strong>' . t('Unique terms') . ':</strong> ' . $variables['unique'] . ' (' . sprintf("%01.2f", 100 * $variables['unique'] / $variables['total']) . '%)</div>';
  $output .= '<div><strong>' . t('Failed searches') . ':</strong> ' . $variables['failed'] . ' (' . sprintf("%01.2f", 100 * $variables['failed'] / $variables['total']) . '%)</div>';
  return $output;
}