function google_analytics_reports_block_view in Google Analytics Reports 7
Implements hook_block_view().
File
- google_analytics_reports/
google_analytics_reports.module, line 63 - Front-end interfaces that use the Google Analytics API module.
Code
function google_analytics_reports_block_view($delta = '') {
if (!user_access('access google analytics reports')) {
return FALSE;
}
switch ($delta) {
case 'path_mini':
$block['subject'] = t('Page traffic');
$block['content'] = '<div class="google-analytics-reports-path-mini"></div>';
return $block;
case 'dashboard':
$block['subject'] = t('Google Analytics Summary');
$block['content'] = '<div class="google-analytics-reports-dashboard"></div>';
return $block;
}
}