function tripal_library_menu

2.x tripal_library.module tripal_library_menu()
3.x tripal_library.module tripal_library_menu()
1.x tripal_library.module tripal_library_menu()

Implements hook_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_library/tripal_library.module, line 65
Integrates the Chado Library module with Drupal Nodes & Views

Code

function tripal_library_menu() {
  $items = array();
  // The administative settings menu
  $items['admin/tripal/chado/tripal_library'] = array(
    'title' => 'Libraries',
    'description' => 'Any biological library. Examples of genomic libraries include BAC, cDNA, FOSMID, etc.',
    'page callback' => 'tripal_library_admin_libraries_listing',
    'access arguments' => array('administer tripal library'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/chado/tripal_library/help'] = array(
    'title' => 'Help',
    'description' => 'Basic Description of Tripal Library Module Functionality',
    'page callback' => 'theme',
    'page arguments' => array('tripal_library_help'),
    'access arguments' => array('administer tripal library'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10
  );

  $items['admin/tripal/chado/tripal_library/configuration'] = array(
    'title' => 'Settings',
    'description' => 'Configure the Tripal Library module',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_library_admin'),
    'access arguments' => array('administer tripal library'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5
  );
  $items['admin/tripal/chado/tripal_library/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_library', 'chado_library'),
    'access arguments' => array('administer tripal library'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2
  );

  $items['admin/tripal/chado/tripal_library/chado_library_toc'] = array(
    'title' => ' TOC',
    'description' => 'Manage the table of contents for library nodes.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_core_content_type_toc_form', 'chado_library'),
    'access arguments' => array('administer tripal library'),
    '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_library/views/libraries/enable'] = array(
    'title' => 'Enable Library Administrative View',
    'page callback' => 'tripal_enable_view',
    'page arguments' => array('tripal_library_admin_libraries', 'admin/tripal/chado/tripal_library'),
    'access arguments' => array('administer tripal library'),
    'type' => MENU_CALLBACK,
  );

  return $items;
}