function tripal_ws_menu
3.x tripal_ws.module | tripal_ws_menu() |
Implements hook_menu(). Defines all menu items needed by Tripal Core
Related topics
File
- tripal_ws/
tripal_ws.module, line 62 - The Tripal Web Service Module
Code
function tripal_ws_menu() {
// Web Services API callbacks.
$items['web-services'] = array(
'title' => 'Tripal Web Services API',
'page callback' => 'tripal_ws_get_services',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
$items['remote/%/%/%/%'] = array(
'page callback' => 'tripal_ws_load_remote_entity',
'page arguments' => array(1, 2, 3, 4),
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
// Tripal Web Services setting groups
$items['admin/tripal/storage/ws'] = array(
'title' => 'Remote Tripal Sites',
'description' => t("Create mashups of content using data from this site and remote Tripal sites."),
'weight' => 20,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('administer tripal'),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/tripal/storage/ws/tripal_sites'] = array(
'title' => 'Configuration',
'description' => t('Provides information about other Tripal sites.
This allows data exchange and communication betwen Tripal
enabled sites through the web services.'),
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_ws_tripal_sites_form'),
'access arguments' => array('administer tripal'),
'type' => MENU_NORMAL_ITEM,
'weight' => 0,
'file' => 'includes/tripal_ws.admin.inc',
'file path' => drupal_get_path('module', 'tripal_ws'),
);
$items['admin/tripal/storage/ws/tripal_sites/edit'] = array(
'title' => 'Add Tripal Site',
'description' => 'Add a Tripal site',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_ws_tripal_sites_edit_form'),
'access arguments' => array('administer tripal'),
'file' => 'includes/tripal_ws.admin.inc',
'file path' => drupal_get_path('module', 'tripal_ws'),
'type' => MENU_LOCAL_ACTION,
'weight' => 2
);
$items['admin/tripal/storage/ws/tripal_sites/remove/%'] = array(
'title' => 'Remove Tripal Site',
'description' => 'Remove a Tripal site',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_ws_tripal_sites_remove_form', 6),
'access arguments' => array('administer tripal'),
'file' => 'includes/tripal_ws.admin.inc',
'file path' => drupal_get_path('module', 'tripal_ws'),
'type' => MENU_CALLBACK,
'weight' => 2
);
return $items;
}