You are here

function charts_menu in Charts 7.2

Same name and namespace in other branches
  1. 6 charts.module \charts_menu()
  2. 7 charts.hooks.inc \charts_menu()

Implements hook_menu().

File

./charts.module, line 23
Provides elements for rendering charts and Views integration.

Code

function charts_menu() {
  $items['admin/config/content/charts'] = array(
    'title' => 'Default chart configuration',
    'description' => 'Set the default library, behavior, and style of charts.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'charts_default_settings_form',
    ),
    'access arguments' => array(
      'administer charts',
    ),
    'file' => 'includes/charts.pages.inc',
  );
  $items['charts/examples'] = array(
    'title' => 'Charts examples',
    'page callback' => 'charts_examples',
    'access arguments' => array(
      'access example charts',
    ),
    'file' => 'includes/charts.examples.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['charts/examples/built-in'] = array(
    'title' => 'Built-in examples',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}