You are here

function theme_statspro_log in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro_overview.inc \theme_statspro_log()
1 theme call to theme_statspro_log()
statspro_overview in ./statspro.reports.inc
Callback function for overview page

File

./statspro.reports.inc, line 82
Include file for statistics report page

Code

function theme_statspro_log($title, $data) {
  $output = '<div id="content-area">';
  if (is_array($data)) {

    // get overview chart
    //    $output .= statspro_chart_summary($title, $data);
    // theme the table
    $header = array(
      t('Name'),
      t('Value'),
    );
    $output .= theme('table', $header, $data);
  }
  else {
    $output .= t('No access and log files available for specified period.');
  }
  $output .= '</div>';
  return $output;
}