function tripal_chado_views_menu
3.x tripal_chado_views.module | tripal_chado_views_menu() |
Implements hook_menu(). This hook provides details about new menu items added by this module
Related topics
File
- tripal_chado_views/
tripal_chado_views.module, line 30 - Basic Tripal Views functionality
Code
function tripal_chado_views_menu() {
$items = array();
// $items['chado'] = array(
// 'title' => 'Search Data',
// 'description' => 'Listings of the various biological data available categorized by type.',
// 'page callback' => 'theme',
// 'page arguments' => array('tripal_chado_views_search_biological_content'),
// 'access arguments' => array('access content'),
// 'expanded' => TRUE,
// 'type' => MENU_NORMAL_ITEM,
// );
// TODO: should the views integration be moved into the tripal_chado module?
$items['admin/tripal/storage/chado/views-integration'] = array(
'title' => 'Views Integration',
'description' => 'Integration of all the chado tables and fields with Drupal Views.',
'page callback' => 'tripal_chado_views_admin_integration_view',
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_NORMAL_ITEM,
'weight' => 10
);
/**
$items['admin/tripal/storage/chado/views-integration/list'] = array(
'title' => 'List of Integrated Tables',
'description' => 'Provide a list of all integrated tables and allows for adding new tables or editing already integrated tables.',
'page callback' => 'tripal_chado_views_integration_setup_list',
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_NORMAL_ITEM,
'weight' => 0,
);
*/
$items['admin/tripal/storage/chado/views-integration/new'] = array(
'title' => 'Integrate A Table',
'description' => 'Describe to Tripal Views how to integrate a new chado table or materialized view.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_views_integration_form'),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
'weight' => 1,
);
$items['admin/tripal/storage/chado/views-integration/edit/%'] = array(
'title' => 'Edit Views Integration',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_chado_views_integration_form', 6),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
);
$items['admin/tripal/storage/chado/views-integration/delete/%'] = array(
'title' => 'Delete Views Integration',
'page callback' => 'tripal_chado_views_integration_delete',
'page arguments' => array(4),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
);
$items['admin/tripal/storage/chado/views-integration/delete-all/confirm'] = array(
'title' => 'Delete ALL Views Integration',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_chado_views_integration_delete_all_form'),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
);
$items['admin/tripal/storage/chado/views-integration/import'] = array(
'title' => 'Import Views Integration',
'description' => 'Import a Chado Views Integration from another site.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_chado_views_integration_import_form'),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
'weight' => 2,
);
$items['admin/tripal/storage/chado/views-integration/export'] = array(
'title' => 'Export Views Integration',
'description' => 'Export a Chado Views Integration for use in another Tripal site',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_chado_views_integration_export_form', 4),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
'weight' => 3,
);
$items['admin/tripal/storage/chado/views-integration/export/%'] = array(
'title' => 'Export Views Integration',
'description' => 'Export a Chado Views Integration for use in another Tripal site',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_chado_views_integration_export_form', 4),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
);
$items['admin/tripal/storage/chado/views-integration/help'] = array(
'title' => 'Help',
'description' => "A description of the Tripal Chado Views module including a short description of it's usage.",
'page callback' => 'theme',
'page arguments' => array('tripal_chado_views_help'),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/tripal/storage/chado/views-integrations/views/integrations/enable'] = array(
'title' => 'Enable Integrations Administrative View',
'page callback' => 'tripal_enable_view',
'page arguments' => array('tripal_chado_views_admin_integrations', 'admin/tripal/storage/chado/views-integration'),
'access arguments' => array('manage tripal_views_integration'),
'type' => MENU_CALLBACK,
);
return $items;
}