function tripal_project_menu

2.x tripal_project.module tripal_project_menu()
3.x tripal_project.module tripal_project_menu()
1.x tripal_project.module tripal_project_menu()

Implements hook_menu().

Related topics

File

legacy/tripal_project/tripal_project.module, line 42
Integrates the Chado Project tables with Drupal Nodes & Views

Code

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

  $items['admin/tripal/legacy/tripal_project'] = array(
    'title' => 'Projects',
    'description' => ('A project. Can be used for grouping data such as with the natural diversity module data.'),
    'page callback' => 'tripal_project_admin_project_view',
    'access arguments' => array('administer tripal project'),
    'type' => MENU_NORMAL_ITEM
  );

  $items['admin/tripal/legacy/tripal_project/help'] = array(
    'title' => 'Help',
    'description' => ("Basic Description of Tripal Project Module Functionality."),
    'page callback' => 'theme',
    'page arguments' => array('tripal_project_help'),
    'access arguments' => array('administer tripal project'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 6
  );

  $items['admin/tripal/legacy/tripal_project/configuration'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_project_admin'),
    'access arguments' => array('administer tripal project'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4
  );

  $items['admin/tripal/legacy/tripal_project/sync'] = array(
    'title' => ' Sync',
    'description' => 'Create pages on this site for projects stored in Chado',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('chado_node_sync_form', 'tripal_project', 'chado_project'),
    'access arguments' => array('administer tripal project'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 0
  );

  $items['admin/tripal/legacy/tripal_project/chado_project_toc'] = array(
    'title' => ' TOC',
    'description' => 'Manage the table of contents for project nodes.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('tripal_core_content_type_toc_form', 'chado_project'),
    'access arguments' => array('administer tripal project'),
    'type' => MENU_LOCAL_TASK,
    'file' => 'includes/tripal_core.toc.inc',
    'file path' => drupal_get_path('module', 'tripal_core'),
    'weight' => 3
  );

  $items['admin/tripal/legacy/tripal_project/views/projects/enable'] = array(
    'title' => 'Enable Project Administrative View',
    'page callback' => 'tripal_enable_view',
    'page arguments' => array('tripal_project_admin_projects', 'admin/tripal/legacy/tripal_project'),
    'access arguments' => array('administer tripal project'),
    'type' => MENU_CALLBACK,
  );
  return $items;
}