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() |
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_featuremap/
tripal_featuremap.module, line 118
Code
function tripal_featuremap_menu() {
$items = array();
// The administative settings menu
$items['admin/tripal/tripal_featuremap'] = array(
'title' => 'Maps',
'description' => 'Basic Description of Tripal Map Module Functionality',
'page callback' => 'theme',
'page arguments' => array('tripal_featuremap_admin'),
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/tripal/tripal_featuremap/configuration'] = array(
'title' => 'Configuration',
'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_NORMAL_ITEM,
);
// Synchronizing maps from Chado to Drupal
$items['chado_sync_featuremaps'] = array(
'title' => 'Sync Data',
'page callback' => 'tripal_featuremap_sync_featuremaps',
'access arguments' => array('administer tripal featuremap'),
'type' => MENU_CALLBACK
);
// AJAX calls for adding/removing properties to a featuremap
$items['tripal_featuremap/properties/add'] = array(
'page callback' => 'tripal_featuremap_property_add',
'access arguments' => array('edit chado_featuremap content'),
'type ' => MENU_CALLBACK,
);
$items['tripal_featuremap/properties/description'] = array(
'page callback' => 'tripal_featuremap_property_get_description',
'access arguments' => array('edit chado_featuremap content'),
'type ' => MENU_CALLBACK,
);
$items['tripal_featuremap/properties/minus/%/%'] = array(
'page callback' => 'tripal_featuremap_property_delete',
'page arguments' => array(3, 4),
'access arguments' => array('edit chado_featuremap content'),
'type ' => MENU_CALLBACK,
);
return $items;
}