function tripal_featuremap_menu
2.x tripal_featuremap.module | tripal_featuremap_menu() |
3.x tripal_featuremap.module | tripal_featuremap_menu() |
1.x tripal_featuremap.module | tripal_featuremap_menu() |
Implements hook_menu().
Menu items are automatically added for the new node types created by this module to the 'Create Content' Navigation menu item. This function adds more menu items needed for this module.
Related topics
File
- legacy/
tripal_featuremap/ tripal_featuremap.module, line 92 - Integrates the Chado Map module with Drupal Nodes & Views
Code
function tripal_featuremap_menu() {
$items = array();
// The administative settings menu
$items['admin/tripal/legacy/tripal_featuremap'] = array(
'title' => 'Feature Maps',
'description' => 'A map of features from the chado database (e.g. genetic map)',
'page callback' => 'tripal_featuremap_admin_featuremaps_listing',
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/tripal/legacy/tripal_featuremap/help'] = array(
'title' => 'Help',
'description' => 'Basic Description of Tripal Map Module Functionality',
'page callback' => 'theme',
'page arguments' => array('tripal_featuremap_help'),
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_LOCAL_TASK,
'weight' => 10
);
$items['admin/tripal/legacy/tripal_featuremap/configuration'] = array(
'title' => 'Settings',
'description' => 'Manage integration of Chado maps including associated features.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_featuremap_admin'),
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_LOCAL_TASK,
'weight' => 2
);
$items['admin/tripal/legacy/tripal_featuremap/sync'] = array(
'title' => ' Sync',
'description' => 'Sync featuremaps from Chado with Drupal',
'page callback' => 'drupal_get_form',
'page arguments' => array('chado_node_sync_form', 'tripal_featuremap', 'chado_featuremap'),
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_LOCAL_TASK,
'weight' => 0
);
$items['admin/tripal/legacy/tripal_featuremap/chado_featuremap_toc'] = array(
'title' => ' TOC',
'description' => 'Manage the table of contents for feature map nodes.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_core_content_type_toc_form', 'chado_featuremap'),
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_LOCAL_TASK,
'file' => 'includes/tripal_core.toc.inc',
'file path' => drupal_get_path('module', 'tripal_core'),
'weight' => 3
);
$items['admin/tripal/legacy/tripal_featuremap/views/featuremaps/enable'] = array(
'title' => 'Enable featuremap Administrative View',
'page callback' => 'tripal_enable_view',
'page arguments' => array('tripal_featuremap_admin_featuremaps', 'admin/tripal/legacy/tripal_featuremap'),
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_CALLBACK,
);
return $items;
}