function yandex_metrics_reports_render_report in Yandex.Metrics 8.3
Same name and namespace in other branches
- 7.3 yandex_metrics_reports/yandex_metrics_reports.module \yandex_metrics_reports_render_report()
Callback that prints content of one of the 4 reports.
It is intended for AJAX calls.
1 call to yandex_metrics_reports_render_report()
- yandex_metrics_reports_report in yandex_metrics_reports/
yandex_metrics_reports.module - Menu callback; displays a Summary page containing reports and charts.
File
- yandex_metrics_reports/
yandex_metrics_reports.module, line 345 - The main code of Yandex.Metrics Reports module.
Code
function yandex_metrics_reports_render_report($counter_id, $filter, $type) {
$output = '';
$reports = yandex_metrics_reports_get_list();
if (isset($reports[$type]) && isset($reports[$type]['callback']) && function_exists($reports[$type]['callback'])) {
$output = call_user_func($reports[$type]['callback'], $counter_id, $filter);
}
return $output;
}