You are here

function chart_visitors_platform in Visitors 7.2

Display platform chart report.

1 string reference to 'chart_visitors_platform'
visitors_browscap_menu in ./visitors_browscap.module
Menu callback. Prints a listing of active nodes on the site.

File

reports/platform.inc, line 106
Platform report for the visitors module.

Code

function chart_visitors_platform() {
  $results = visitors_platform_data(NULL);
  $tmp_rows = array();
  $rows = array();
  foreach ($results as $data) {
    $rows[$data->platform] = $data->count;
  }
  $platforms = array_unique(array_keys($rows));
  visitors_chart($rows, $platforms);
}