function tripal_views_menu

2.x tripal_views.module tripal_views_menu()
1.x tripal_views.module tripal_views_menu()

Implements hook_menu()

Purpose: this hook provides details about new menu items added by this module

File

tripal_views/tripal_views.module, line 15

Code

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

  $items['chado'] = array(
    'title' => 'Search Biological Data',
    'description' => 'Listings of the various biological data available categorized by type.',
    'page callback' => 'tripal_views_biological_data_page',
    'access arguments' => array('access content'),
    'expanded' => TRUE,
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/views'] = array(
    'title' => 'Views Integration',
    'description' => 'Integration with Drupal Views',
    'page callback' => 'theme',
    'page arguments' => array('tripal_views_admin'),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_NORMAL_ITEM
  );

  $items['admin/tripal/views/integration/list'] = array(
    'title' => 'List of Integrated Tables',
    'description' => 'Provide a list of all integrated tables and allows for adding new tables or editing already integrated tables.',
    'page callback' => 'tripal_views_integration_setup_list',
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 0,
  );

  $items['admin/tripal/views/integration/new'] = array(
    'title' => 'Integrate A Table',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_views_integration_form'),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/views/integration/edit/%'] = array(
    'title' => 'Edit Views Integration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_views_integration_form', 5),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_CALLBACK,
  );

  $items['admin/tripal/views/integration/delete/%'] = array(
    'title' => 'Delete Views Integration',
    'page callback' => 'tripal_views_integration_delete',
    'page arguments' => array(5),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_CALLBACK,
  );

  $items['admin/tripal/views/import'] = array(
    'title' => 'Import Views Integration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_views_integration_import_form'),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/views/integration/export/%'] = array(
    'title' => 'Import Views Integration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_views_integration_export_form', 5),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_CALLBACK,
  );

  // Menu item for the AJAX callback function that retrieves the 
  // portion of the form that contains all of the fields for the table being integrated
  $items['tripal/views/integration/ajax/view_setup_table'] = array(
    'title' => 'Import Views Integration',
    'page callback' => 'tripal_views_integration_ajax_view_setup_table',
    'page arguments' => array(),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_CALLBACK,
  );

  // Menu item for the AJAX callback function that retrieves the list of 
  // column names for the table that is selected to be joined. 
  $items['tripal/views/integration/ajax/join_field/%/%'] = array(
    'title' => 'Import Views Integration',
    'page callback' => 'tripal_views_integration_ajax_join_field',
    'page arguments' => array(5, 6),
    'access arguments' => array('manage tripal_views_integration'),
    'type' => MENU_CALLBACK,
  );

  return $items;
}