function tripal_contact_menu
2.x tripal_contact.module | tripal_contact_menu() |
3.x tripal_contact.module | tripal_contact_menu() |
1.x tripal_contact.module | tripal_contact_menu() |
Implemets hook_menu(). Adds menu items for the tripal_contact module menu. This section gives the outline for the main menu of the Tripal-contact module
Return value
An array of menu items that is visible within the Drupal Menu, returned as soon as the program is ran
File
- legacy/
tripal_contact/ tripal_contact.module, line 49 - Functions related to general module functionality.
Code
function tripal_contact_menu() {
$items = array();
$items['admin/tripal/legacy/tripal_contact'] = array(
'title' => 'Contacts',
'description' => ('Model persons, institutes, groups, organizations, etc.'),
'page callback' => 'tripal_contact_admin_contact_view',
'access arguments' => array('administer tripal contact'),
'type' => MENU_NORMAL_ITEM
);
$items['admin/tripal/legacy/tripal_contact/configuration'] = array(
'title' => 'Settings',
'description' => 'Integration of Chado contacts.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_contact_admin'),
'access arguments' => array('administer tripal contact'),
'type' => MENU_LOCAL_TASK,
'weight' => 5
);
$items['admin/tripal/legacy/tripal_contact/help'] = array(
'title' => 'Help',
'description' => ('Help with the contact module.'),
'page callback' => 'theme',
'page arguments' => array('tripal_contact_help'),
'access arguments' => array('administer tripal contact'),
'type' => MENU_LOCAL_TASK,
'weight' => 10
);
$items['admin/tripal/legacy/tripal_contact/sync'] = array(
'title' => ' Sync',
'description' => 'Sync contacts in Chado with Drupal',
'page callback' => 'drupal_get_form',
// 'page arguments' => array('tripal_contact_sync_form'),
'page arguments' => array('chado_node_sync_form', 'tripal_contact', 'chado_contact'),
'access arguments' => array('administer tripal contact'),
'type' => MENU_LOCAL_TASK,
'weight' => 0
);
$items['admin/tripal/legacy/tripal_contact/chado_contact_toc'] = array(
'title' => ' TOC',
'description' => 'Manage the table of contents for contact nodes.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_core_content_type_toc_form', 'chado_contact'),
'access arguments' => array('administer tripal contact'),
'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_contact/contact/auto_name/%'] = array(
'page callback' => 'tripal_autocomplete_contact',
'page arguments' => array(6),
'access arguments' => array('administer tripal contact'),
'type' => MENU_CALLBACK,
);
return $items;
}