function ad_report_bargraph_handler in Advertisement 7
Same name and namespace in other branches
- 6.3 report/ad_report.module \ad_report_bargraph_handler()
- 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);
}