You are here

function theme_analytics_reports_overview in Analytics 6

Theme function for analytics overview page.

1 theme call to theme_analytics_reports_overview()
analytics_reports_overview in modules/analytics_ui/analytics_ui.admin.inc
Page callback for analytics overview page.

File

modules/analytics_ui/analytics_ui.admin.inc, line 35

Code

function theme_analytics_reports_overview($overview) {
  $rows = array();
  $header = array(
    t('event name'),
    t('total'),
    t('today'),
    t('this week'),
    '',
  );
  foreach ($overview as $event) {
    $row = array(
      'data' => array(
        array(
          'data' => filter_xss_admin($event['event_name']),
        ),
        array(
          'data' => $event['instances'] . ' times',
        ),
        array(
          'data' => $event['daily_instances'] . ' times',
        ),
        array(
          'data' => $event['weekly_instances'] . ' times',
        ),
        array(
          'data' => $event['event_link'],
        ),
      ),
    );
    $rows[] = $row;
  }
  return theme('table', $header, $rows);
}