function hook_yandex_metrics_reports_list in Yandex.Metrics 6.2
Provide metadata about available reports.
Return value
An associative array of available reports.
1 function implements hook_yandex_metrics_reports_list()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- yandex_metrics_reports_yandex_metrics_reports_list in yandex_metrics_reports/
yandex_metrics_reports.module - Implements hook_yandex_metrics_reports_list().
1 invocation of hook_yandex_metrics_reports_list()
- yandex_metrics_reports_get_list in yandex_metrics_reports/
yandex_metrics_reports.module - Returns list of all reports.
File
- yandex_metrics_reports/
yandex_metrics_reports.api.php, line 19 - Hooks provided by the Yandex.Metrics Reports module.
Code
function hook_yandex_metrics_reports_list() {
$reports = array();
// I strongly recommend only use letters, numbers and underscores for keys of this array!
$reports['my_custom_report'] = array(
// String for Reports settings page.
'title' => t('My Custom Report'),
// Name of the function that generates your report.
'callback' => 'mymodule_my_custom_report',
);
return $reports;
}