You are here

function ad_report_bargraph_handler in Advertisement 7

Same name and namespace in other branches
  1. 6.3 report/ad_report.module \ad_report_bargraph_handler()
  2. 6.2 report/ad_report.module \ad_report_bargraph_handler()
1 string reference to 'ad_report_bargraph_handler'
ad_report_menu in report/ad_report.module
Implementation of hook_menu().

File

report/ad_report.module, line 73
Provides comprehensive charts and reports about advertising statistics.

Code

function ad_report_bargraph_handler($node, $start = 0, $end = 0, $data = '') {
  $data = explode('|', $data);
  $graph = array();
  foreach ($data as $value) {
    if ($value) {
      $graph[$value] = $value;
    }
  }
  return ad_report_bargraph($node, "node/{$node->nid}/report", $start, $end, $graph);
}