Skip to content
Snippets Groups Projects
Commit 2b8d86b1 authored by Bruno Massa's avatar Bruno Massa
Browse files

Improvements:

* [#461660] by kenorb and brmassa: 'set default settings for charts' instead of 'access administration pages' access
parent 69e749d0
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ function charts_chart_types() { ...@@ -42,7 +42,7 @@ function charts_chart_types() {
*/ */
function charts_menu() { function charts_menu() {
$items['admin/settings/charts'] = array( $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', 'description' => 'Set the default behaviour and look of all your charts',
'file' => 'charts.admin.inc', 'file' => 'charts.admin.inc',
'page callback' => 'drupal_get_form', 'page callback' => 'drupal_get_form',
...@@ -52,6 +52,13 @@ function charts_menu() { ...@@ -52,6 +52,13 @@ function charts_menu() {
return $items; return $items;
} }
/**
* Implementation of hook_perm().
*/
function charts_perm() {
return array('set default settings for charts');
}
/** /**
* Implementation of hook_requirements(). * Implementation of hook_requirements().
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment