function tripal_feature_menu
2.x tripal_feature.module | tripal_feature_menu() |
3.x tripal_feature.module | tripal_feature_menu() |
1.x tripal_feature.module | tripal_feature_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
- tripal_feature/
tripal_feature.module, line 110 - Basic functionality for the tripal module
Code
function tripal_feature_menu() {
$items = array();
// the administative settings menu
$items['find/sequences'] = array(
'title' => 'Sequence Retrieval',
'description' => 'Download a file of sequences',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_feature_seq_extract_form'),
'access arguments' => array('access chado_feature content'),
'type' => MENU_CALLBACK,
);
$items['find/sequences/download'] = array(
'page callback' => 'tripal_feature_seq_extract_download',
'access arguments' => array('access chado_feature content'),
'type' => MENU_CALLBACK,
);
// the menu link for addressing any feature (by name, uniquename, synonym)
$items['feature/%'] = array(
'page callback' => 'tripal_feature_match_features_page',
'page arguments' => array(1),
'access arguments' => array('access chado_feature content'),
'type' => MENU_LOCAL_TASK,
);
// the administative settings menu
$items['admin/tripal/chado/tripal_feature'] = array(
'title' => 'Features',
'description' => 'A biological sequence or a section of a biological sequence, or a collection of such sections.',
'page callback' => 'tripal_feature_admin_feature_view',
'access arguments' => array('administer tripal feature'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/tripal/chado/tripal_feature/delete'] = array(
'title' => ' Delete',
'description' => 'Delete multiple features from Chado',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_feature_delete_form'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_LOCAL_TASK,
'weight' => 2
);
$items['admin/tripal/chado/tripal_feature/sync'] = array(
'title' => ' Sync',
'description' => 'Create pages on this site for features stored in Chado',
'page callback' => 'drupal_get_form',
'page arguments' => array('chado_node_sync_form', 'tripal_feature', 'chado_feature'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_LOCAL_TASK,
'weight' => 1
);
$items['admin/tripal/chado/tripal_feature/chado_feature_toc'] = array(
'title' => ' TOC',
'description' => 'Manage the table of contents for feature nodes.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_core_content_type_toc_form', 'chado_feature'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_LOCAL_TASK,
'file' => 'includes/tripal_core.toc.inc',
'file path' => drupal_get_path('module', 'tripal_core'),
'weight' => 3
);
$items['admin/tripal/chado/tripal_feature/configuration'] = array(
'title' => 'Settings',
'description' => 'Configure the Tripal Feature module.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_feature_admin'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_LOCAL_TASK,
'weight' => 5
);
$items['admin/tripal/chado/tripal_feature/help'] = array(
'title' => 'Help',
'description' => 'Help with the Tripal Feature module.',
'page callback' => 'theme',
'page arguments' => array('tripal_feature_help'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_LOCAL_TASK,
'weight' => 10
);
/** Loaders */
$items['admin/tripal/loaders/fasta_loader'] = array(
'title' => 'FASTA file Loader',
'description' => 'Load sequences from a multi-FASTA file into Chado',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_feature_fasta_load_form'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/tripal/loaders/gff3_load'] = array(
'title' => 'GFF3 file Loader',
'description' => 'Import a GFF3 file into Chado',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_feature_gff3_load_form'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_NORMAL_ITEM,
);
// Enable admin view
$items['admin/tripal/chado/tripal_feature/views/features/enable'] = array(
'title' => 'Enable feature Administrative View',
'page callback' => 'tripal_enable_view',
'page arguments' => array('tripal_feature_admin_features', 'admin/tripal/chado/tripal_feature'),
'access arguments' => array('administer tripal feature'),
'type' => MENU_CALLBACK,
);
return $items;
}