function google_analytics_reports_detail_page in Google Analytics Reports 6
Same name and namespace in other branches
- 7 google_analytics_reports/google_analytics_reports.pages.inc \google_analytics_reports_detail_page()
Page callback for admin/reports/google-analytics/detail.
1 string reference to 'google_analytics_reports_detail_page'
- google_analytics_reports_menu in google_analytics_reports/
google_analytics_reports.module - Implementation of hook_menu().
File
- google_analytics_reports/
google_analytics_reports.pages.inc, line 44 - Page callbacks for google analytics.
Code
function google_analytics_reports_detail_page() {
$path = isset($_GET['path']) ? $_GET['path'] : '/index.html';
drupal_set_title(t('Content detail: @path', array(
'@path' => $path,
)));
$report = array(
'pageviews_chart' => _google_analytics_reports_pageviews($path),
'stats' => _google_analytics_reports_detail_stats($path),
'referrals' => _google_analytics_reports_top_referrals($path),
'keywords' => _google_analytics_reports_top_keywords($path),
);
if (in_array(FALSE, $report, TRUE)) {
drupal_set_message(_google_analytics_reports_error_message(), 'error');
return ' ';
}
return theme('google_analytics_reports_detail', $report);
}