summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--googleanalytics.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/googleanalytics.module b/googleanalytics.module
index 3d76a20..3eb7157 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,
);
}