From 2b8d86b13527957862296714a73be2b14dd6e28b Mon Sep 17 00:00:00 2001 From: Bruno Massa <brmassa@67164.no-reply.drupal.org> Date: Wed, 13 May 2009 17:55:25 +0000 Subject: [PATCH] Improvements: * [#461660] by kenorb and brmassa: 'set default settings for charts' instead of 'access administration pages' access --- charts.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/charts.module b/charts.module index d29ca45..22f5e2c 100644 --- a/charts.module +++ b/charts.module @@ -42,7 +42,7 @@ function charts_chart_types() { */ function charts_menu() { $items['admin/settings/charts'] = array( - 'access arguments' => array('access administration pages'), + 'access arguments' => array('set default settings for charts'), 'description' => 'Set the default behaviour and look of all your charts', 'file' => 'charts.admin.inc', 'page callback' => 'drupal_get_form', @@ -52,6 +52,13 @@ function charts_menu() { return $items; } +/** + * Implementation of hook_perm(). + */ +function charts_perm() { + return array('set default settings for charts'); +} + /** * Implementation of hook_requirements(). */ -- GitLab