You are here

function google_analytics_reports_init in Google Analytics Reports 6

Same name and namespace in other branches
  1. 7 google_analytics_reports/google_analytics_reports.module \google_analytics_reports_init()

Implements hook_init();

File

google_analytics_reports/google_analytics_reports.module, line 46
Front-end interfaces that use the Google Analytics API module.

Code

function google_analytics_reports_init() {
  drupal_add_js(drupal_get_path('module', 'google_analytics_reports') . '/google_analytics_reports.js', 'module', 'footer');
  drupal_add_css(drupal_get_path('module', 'google_analytics_reports') . '/google_analytics_reports.css', 'module', 'all');
  drupal_add_js(array(
    'googleAnalyticsReportsAjaxUrl' => url('google-analytics-reports/ajax'),
  ), 'setting');
}