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()

Related topics

File

tripal_db/tripal_db.module, line 25

Code

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

  $items['admin/tripal/tripal_db'] = array(
    'title' => 'Databases',
    'description' => 'Basic Description of Tripal DB Module Functionality',
    'page callback' => 'theme',
    'page arguments' => array('tripal_db_admin'),
    'access callback' => 'user_access',
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_db/edit_db'] = array(
    'title' => 'Edit a Database',
    'description' => 'Manage Databases ',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_db_form', 'Update'),
    'access callback' => 'user_access',
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_db/add_db'] = array(
    'title' => 'Add a Database',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_db_form', 'Add'),
    'access callback' => 'user_access',
    'access arguments' => array('administer db cross-references'),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/tripal/tripal_db/edit/js'] = array(
    'page callback' => 'tripal_ajax_db_edit',
    'access callback' => 'user_access',
    'access arguments' => array('access administration pages'),
    'type' => MENU_CALLBACK,
  );

  return $items;
}