function tripal_db_menu

2.x tripal_db.module tripal_db_menu()
3.x tripal_db.module tripal_db_menu()
1.x tripal_db.module tripal_db_menu()

Implements hook_menu().

Related topics

File

tripal_db/tripal_db.module, line 29
General functions for the db module

Code

function tripal_db_menu() {
  $items = array();

  $items['admin/tripal/chado/tripal_db'] = array(
    'title' => 'Databases',
    'description' => 'References to External Database sites such as NCBI',
    'page callback' => 'tripal_db_admin_db_listing',
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/chado/tripal_db/help'] = array(
    'title' => 'Help',
    'description' => "A description of the Tripal Database module including a short description of it's usage.",
    'page callback' => 'theme',
    'page arguments' => array('tripal_db_admin'),
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10
  );

  $items['admin/tripal/chado/tripal_db/edit/%'] = array(
    'title' => 'Edit a Database Reference',
    'description' => 'Edit existing Database References.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_db_db_edit_form', 5),
    'access callback' => 'user_access',
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_CALLBACK,
  );

  $items['admin/tripal/chado/tripal_db/add'] = array(
    'title' => 'Create a Database Reference',
    'description' => 'Create a new reference to an External Database.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_db_db_add_form'),
    'access callback' => 'user_access',
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_CALLBACK,
  );

  $items['admin/tripal/chado/tripal_db/views/dbs/enable'] = array(
    'title' => 'Enable Database Administrative View',
    'page callback' => 'tripal_enable_view',
    'page arguments' => array('tripal_db_admin_dbs', 'admin/tripal/chado/tripal_db'),
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_CALLBACK,
  );
  $items['admin/tripal/chado/tripal_db/views/dbxrefs/enable'] = array(
    'title' => 'Enable Reference Administrative View',
    'page callback' => 'tripal_enable_view',
    'page arguments' => array('tripal_db_admin_dbxrefs', 'admin/tripal/chado/tripal_db'),
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_CALLBACK,
  );

  return $items;
}