diff --git a/googleanalytics.module b/googleanalytics.module index 3d76a20f7fe900796056eee95ea8eb0e2dea4605..3eb7157c9eef1d5dbc9fe635448829077c7faf14 100644 --- a/googleanalytics.module +++ b/googleanalytics.module @@ -17,6 +17,10 @@ function googleanalytics_help($section) { } } +function googleanalytics_perm() { + return array('administer google analytics'); +} + function googleanalytics_menu($maycache) { $items = array(); if ($maycache) { @@ -26,7 +30,7 @@ function googleanalytics_menu($maycache) { 'description' => t('Configure the settings used to generate your Google Analytics tracking code.'), 'callback' => 'drupal_get_form', 'callback arguments' => 'googleanalytics_admin_settings_form', - 'access' => user_access('administer site configuration'), + 'access' => user_access('administer google analytics'), 'type' => MENU_NORMAL_ITEM, ); }