function tripal_cv_menu

2.x tripal_cv.module tripal_cv_menu()
3.x tripal_cv.module tripal_cv_menu()
1.x tripal_cv.module tripal_cv_menu()

Implements hook_menu(). Registers all menu items associated with this module

Related topics

File

tripal_cv/tripal_cv.module, line 41

Code

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

  $items['admin/tripal/tripal_cv'] = array(
    'title' => 'Vocabularies',
    'description' => 'Basic Description of Tripal CV Module Functionality',
    'page callback' => 'theme',
    'page arguments' => array('tripal_cv_admin'),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_cv/obo_loader'] = array(
    'title' => 'Load Ontology',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_cv_obo_form'),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_cv/cvtermpath'] = array(
    'title' => 'Update Chado cvtermpath table',
    'description' => 'The Chado cvtermpath table provides lineage for terms and is useful for quickly finding any ancestor parent of a term.  However, this table must be populated.  This page allows for populating of this table one vocabulary at a time',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_cv_cvtermpath_form'),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  /*
   * Menu items for adding and editing CVs
   */
  $items['admin/tripal/tripal_cv/cv/add'] = array(
    'title' => 'Add a Vocabulary',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_cv_add_form'),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_cv/cv/edit'] = array(
    'title' => 'Edit a Vocabulary',
    'description' => 'Edit a controlled vocabularies/ontolgoies in Chado ',
    'page callback' => 'tripal_cv_edit_page',
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_cv/cv/edit/js'] = array(
    'page callback' => 'tripal_ajax_cv_edit',
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_CALLBACK,
  );

  /*
   * Menu items for adding and editing CV terms
   */
  $items['admin/tripal/tripal_cv/cvterm/add'] = array(
    'title' => 'Add a Term',
    'description' => 'Manage controlled vocabulary/ontology terms in Chado ',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_cv_cvterm_form', 'add'),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/tripal_cv/cvterm/ahah'] = array(
    'page callback' => 'tripal_cv_cvterm_callback',
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_CALLBACK,
  );
  $items['admin/tripal/tripal_cv/cvterm/auto_name/%/%'] = array(
    'page callback' => 'tripal_cv_cvterm_name_autocomplete',
    'page arguments' => array(5, 6),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_CALLBACK,
  );

  $items['admin/tripal/tripal_cv/cvterm/edit'] = array(
    'title' => 'Edit a Term',
    'description' => 'Edit an existing controlled vocabulary/ontology terms in Chado ',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_cv_cvterm_form', 'edit'),
    'access arguments' => array('administer controlled vocabularies'),
    'type' => MENU_NORMAL_ITEM,
  );

  /*
   * Charts
   */
  $items['tripal_cv_chart'] = array(
    'path' => 'tripal_cv_chart',
    'page callback' => 'tripal_cv_chart',
    'page arguments' => array(1),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK
  );


  /*
   * Menu items for working with CV Trees
   */
  $items['cv_browser'] = array(
    'page callback' => 'tripal_cv_show_browser',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK
  );

  $items['tripal_cv_tree'] = array(
    'path' => 'tripal_cv_tree',
    'page callback' => 'tripal_cv_tree',
    'page arguments' => array(1),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK
  );

  $items['tripal_cv_init_browser'] = array(
    'path' => 'tripal_cv_init_browser',
    'page callback' => 'tripal_cv_init_browser',
    'page arguments' => array(1),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK
  );

  // menu item for interaction with the tree
  $items['tripal_cv_update_tree'] = array(
    'path' => 'tripal_cv_update_tree',
    'page callback' => 'tripal_cv_update_tree',
    'page arguments' => array(2, 3),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK
  );

  // menu items for working with terms
  $items['tripal_cv_cvterm_info'] = array(
    'path' => 'tripal_cv_cvterm_info',
    'title' => 'CV Term Viewer',
    'page callback' => 'tripal_cv_cvterm_info',
    'page arguments' => array(1),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK
  );

  return $items;
}