You are here

function charts_graphs_menu in Charts and Graphs 7

Same name and namespace in other branches
  1. 6.2 charts_graphs.module \charts_graphs_menu()
  2. 6 charts_graphs.module \charts_graphs_menu()
  3. 7.2 charts_graphs.module \charts_graphs_menu()

Implements hook_menu().

File

./charts_graphs.module, line 31

Code

function charts_graphs_menu() {
  $items = array();

  // For testing and Advanced Help examples.
  $items['charts_graphs/test'] = array(
    'page callback' => 'charts_graphs_test',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/charts_graphs'] = array(
    'title' => 'Charts and Graphs',
    'description' => 'Main configurations for Charts and Graphs',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'charts_graphs_main_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}