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() |
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
- tripal_contact/
tripal_contact.module, line 84 - This file contains the basic functions needed for this drupal module. The drupal tripal_contact module maps directly to the chado X module.
Code
function tripal_contact_menu() {
$items = array();
$items['admin/tripal/tripal_contact'] = array(
'title' => 'Contacts',
'description' => ('A module for interfacing the GMOD chado database with Drupal, providing viewing of contacts'),
'page callback' => 'theme',
'page arguments' => array('tripal_contact_admin'),
'access arguments' => array('administer tripal contacts'),
'type' => MENU_NORMAL_ITEM
);
$items['admin/tripal/tripal_contact/configuration'] = array(
'title' => 'Configuration',
'description' => 'Integration of Chado contacts.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_contact_admin'),
'access arguments' => array('administer tripal contact'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/tripal/tripal_contact/sync'] = array(
'title' => ' Sync Contacts',
'description' => 'Sync contacts in Chado with Drupal',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_contact_sync_form'),
'access arguments' => array('administer tripal contacts'),
'type' => MENU_NORMAL_ITEM,
);
// AJAX calls for adding/removing properties to a contact
$items['tripal_contact/properties/add'] = array(
'page callback' => 'tripal_contact_property_add',
'access arguments' => array('edit chado_contact content'),
'type ' => MENU_CALLBACK,
);
$items['tripal_contact/properties/description'] = array(
'page callback' => 'tripal_contact_property_get_description',
'access arguments' => array('edit chado_contact content'),
'type ' => MENU_CALLBACK,
);
$items['tripal_contact/properties/minus/%/%'] = array(
'page callback' => 'tripal_contact_property_delete',
'page arguments' => array(3, 4),
'access arguments' => array('edit chado_contact content'),
'type ' => MENU_CALLBACK,
);
return $items;
}