function tripal_phenotype_menu

2.x tripal_phenotype.module tripal_phenotype_menu()
3.x tripal_phenotype.module tripal_phenotype_menu()

Implements hook_menu().

Menu items are automatically added for the new node types created by this module to the 'Create Content' Navigation menu item. This function adds more menu items needed for this module.

Related topics

File

tripal_phenotype/tripal_phenotype.module, line 41
Basic functionality for the phenotype module

Code

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

  // the administative settings menu
  $items['admin/tripal/chado/tripal_phenotype'] = array(
    'title' => 'Phenotypes',
    'description' => 'A controlled sentence describing observable effects of non-wild type function.',
    'page callback' => 'tripal_phenotype_admin_phenotypes_listing',
    'access arguments' => array('administer tripal phenotype'),
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/tripal/chado/tripal_phenotype/help'] = array(
    'title' => 'Help',
    'description' => "A description of the Tripal phenotype module including a short description of it's usage.",
    'page callback' => 'theme',
    'page arguments' => array('tripal_phenotype_help'),
    'access arguments' => array('administer tripal phenotype'),
    'type' => MENU_LOCAL_TASK,
  );

  $items['admin/tripal/chado/tripal_phenotype/views/phenotypes/enable'] = array(
    'title' => 'Enable Phenotype Administrative View',
    'page callback' => 'tripal_enable_view',
    'page arguments' => array('tripal_phenotype_admin_phenotypes', 'admin/tripal/chado/tripal_phenotype'),
    'access arguments' => array('administer tripal phenotype'),
    'type' => MENU_CALLBACK,
  );

  return $items;
}