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

New features:

* New menu description for Settings page

Misc:
* Testing environment page disabled for a while
parent 857506f6
No related branches found
No related tags found
No related merge requests found
...@@ -46,23 +46,24 @@ function charts_chart(&$data) { ...@@ -46,23 +46,24 @@ function charts_chart(&$data) {
*/ */
function charts_menu() { function charts_menu() {
$items['admin/settings/charts'] = array( $items['admin/settings/charts'] = array(
'description' => 'Set the default behaviour and look of all your charts',
'file' => 'charts.inc', 'file' => 'charts.inc',
'page callback' => 'drupal_get_form', 'page callback' => 'drupal_get_form',
'page arguments' => array('_charts_settings'), 'page arguments' => array('_charts_settings'),
'title' => 'Charts' 'title' => 'Charts'
); );
$items['admin/settings/charts/settings'] = array( // $items['admin/settings/charts/settings'] = array(
'page arguments' => array('_charts_settings'), // 'page arguments' => array('_charts_settings'),
'title' => 'Settings', // 'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK, // 'type' => MENU_DEFAULT_LOCAL_TASK,
); // );
$items['admin/settings/charts/testing'] = array( // $items['admin/settings/charts/testing'] = array(
'file' => 'charts.inc', // 'file' => 'charts.inc',
'page callback' => 'drupal_get_form', // 'page callback' => 'drupal_get_form',
'page arguments' => array('_charts_testing'), // 'page arguments' => array('_charts_testing'),
'title' => 'Testing', // 'title' => 'Testing',
'type' => MENU_LOCAL_TASK, // 'type' => MENU_LOCAL_TASK,
); // );
return $items; return $items;
} }
......
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