function tripal_pub_menu
2.x tripal_pub.module | tripal_pub_menu() |
3.x tripal_pub.module | tripal_pub_menu() |
1.x tripal_pub.module | tripal_pub_menu() |
Implements hook_menu().
Adds menu items for the tripal_pub module menu. This section gives the outline for the main menu of the Tripal-Publication module
Return value
An array of menu items that is visible within the Drupal Menu, returned as soon as the program is ran
Related topics
File
- legacy/
tripal_pub/ tripal_pub.module, line 38 - Basic functionality of the pub module
Code
function tripal_pub_menu() {
$items = array();
// because the publication search is not views we need to manually add
// it to the Search Data list in the navigation menu
$items['chado/publication'] = array(
'title' => 'Publications',
'description' => ('Publications such as journal articles, conference proceedings, or other media.'),
'page callback' => 'tripal_pub_search_page',
'access arguments' => array('access chado_pub content'),
'type' => MENU_NORMAL_ITEM
);
// for backwards compatibility the same chado/publications is also found
// at find/publications
$items['admin/tripal/legacy/tripal_pub'] = array(
'title' => 'Publications',
'description' => ('A documented provenance artefact - publications, documents, personal communication.'),
'page callback' => 'tripal_pub_admin_pub_view',
'access arguments' => array('administer tripal pub'),
'type' => MENU_NORMAL_ITEM
);
$items['admin/tripal/legacy/tripal_pub/help'] = array(
'title' => 'Help',
'description' => ('A module for interfacing the GMOD chado database with Drupal, providing viewing of publications'),
'page callback' => 'theme',
'page arguments' => array('tripal_pub_help'),
'access arguments' => array('administer tripal pub'),
'type' => MENU_LOCAL_TASK,
'weight' => 10
);
$items['admin/tripal/legacy/tripal_pub/configuration'] = array(
'title' => 'Settings',
'description' => 'Configure the Tripal publication module.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_pub_admin'),
'access arguments' => array('administer tripal pub'),
'type' => MENU_LOCAL_TASK,
'weight' => 5
);
$items['admin/tripal/legacy/tripal_pub/sync'] = array(
'title' => ' Sync',
'description' => 'Create pages on this site for libraries stored in Chado',
'page callback' => 'drupal_get_form',
'page arguments' => array('chado_node_sync_form', 'tripal_pub', 'chado_pub'),
'access arguments' => array('administer tripal pub'),
'type' => MENU_LOCAL_TASK,
'weight' => 2
);
$items['admin/tripal/legacy/tripal_pub/chado_pub_toc'] = array(
'title' => ' TOC',
'description' => 'Manage the table of contents for pub nodes.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_core_content_type_toc_form', 'chado_pub'),
'access arguments' => array('administer tripal pub'),
'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_pub/citation'] = array(
'title' => 'Citations',
'description' => 'Update publication citations',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_pub_citation_form'),
'access arguments' => array('administer tripal pub'),
'type' => MENU_LOCAL_TASK,
'weight' => 1
);
return $items;
}