function tripal_stock_menu
2.x tripal_stock.module | tripal_stock_menu() |
3.x tripal_stock.module | tripal_stock_menu() |
1.x tripal_stock.module | tripal_stock_menu() |
Implements hook_menu(). Adds menu items for the tripal_stock
Return value
Menu definitions for the tripal_stock
Related topics
File
- tripal_stock/
tripal_stock.module, line 41 - Basic functionality for stocks
Code
function tripal_stock_menu() {
$items = array();
// the menu link for addressing any stock (by name, uniquename, synonym)
$items['stock/%'] = array(
'page callback' => 'tripal_stock_match_stocks_page',
'page arguments' => array(1),
'access arguments' => array('access chado_stock content'),
'type' => MENU_LOCAL_TASK,
);
//Administrative settings menu-----------------
$items['admin/tripal/chado/tripal_stock'] = array(
'title' => 'Stocks',
'description' => 'A stock is the physical entities of an organism, either living or preserved.',
'page callback' => 'tripal_stock_admin_stock_view',
'access arguments' => array('administer tripal stock'),
'type' => MENU_NORMAL_ITEM
);
$items['admin/tripal/chado/tripal_stock/configuration'] = array(
'title' => 'Settings',
'description' => 'Settings for Chado Stocks',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_stock_admin'),
'access arguments' => array('administer tripal stock'),
'type' => MENU_LOCAL_TASK,
'weight' => 5
);
$items['admin/tripal/chado/tripal_stock/sync'] = array(
'title' => ' Sync',
'description' => 'Sync stocks from Chado with Drupal',
'page callback' => 'drupal_get_form',
//'page arguments' => array('tripal_stock_sync_form'),
'page arguments' => array('chado_node_sync_form', 'tripal_stock', 'chado_stock'),
'access arguments' => array('administer tripal stock'),
'type' => MENU_LOCAL_TASK,
'weight' => 0
);
$items['admin/tripal/chado/tripal_stock/chado_stock_toc'] = array(
'title' => ' TOC',
'description' => 'Manage the table of contents for stock nodes.',
'page callback' => 'drupal_get_form',
'page arguments' => array('tripal_core_content_type_toc_form', 'chado_stock'),
'access arguments' => array('administer tripal stock'),
'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_stock/help'] = array(
'title' => 'Help',
'description' => 'Basic Description of Tripal Stock Module Functionality',
'page callback' => 'theme',
'page arguments' => array('tripal_stock_help'),
'access arguments' => array('administer tripal stock'),
'type' => MENU_LOCAL_TASK,
'weight' => 10
);
return $items;
}