You are here

function data_node_menu in Data 6

Implementation of hook_menu().

File

data_node/data_node.module, line 66
Hooks and API functions for Data Node module.

Code

function data_node_menu() {
  $items = array();
  $items['data-node/add/%data_ui_table/%/%/%'] = array(
    'page callback' => 'data_node_add_page',
    'page arguments' => array(
      2,
      3,
      4,
      5,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'manage data relations',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['data-node/remove/%data_ui_table/%/%/%'] = array(
    'page callback' => 'data_node_remove_page',
    'page arguments' => array(
      2,
      3,
      4,
      5,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'manage data relations',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['data-node/active/%data_ui_table/%'] = array(
    'page callback' => 'data_node_active_page',
    'page arguments' => array(
      2,
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'manage data relations',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/data/edit/%data_ui_table/node'] = array(
    'title' => 'Relate to nodes',
    'description' => 'Administer data tables.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'data_node_settings_form',
      4,
    ),
    'file' => 'data_node.admin.inc',
    'access arguments' => array(
      'administer data tables',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}