You are here

function d3_menu in d3.js 7

Implements hook_menu().

File

./d3.module, line 12
D3 module file for creating visualizations with d3.js.

Code

function d3_menu() {
  $items['admin/config/d3'] = array(
    'title' => 'D3',
    'description' => 'Configuration for d3.',
    'position' => 'right',
    'weight' => 20,
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'access administration pages',
    ),
    'file path' => drupal_get_path('module', 'system'),
    'file' => 'system.admin.inc',
  );
  $items['admin/config/d3/settings'] = array(
    'title' => 'D3 Settings',
    'description' => 'Configuration settings for D3',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'd3_config_form',
    ),
    'access arguments' => array(
      'administer d3',
    ),
    'file' => 'd3.admin.inc',
  );
  return $items;
}