function tripal_phenotype_admin_phenotypes_listing
2.x tripal_phenotype.module | tripal_phenotype_admin_phenotypes_listing() |
3.x tripal_phenotype.module | tripal_phenotype_admin_phenotypes_listing() |
Admin Launchpad
Related topics
1 string reference to 'tripal_phenotype_admin_phenotypes_listing'
- tripal_phenotype_menu in tripal_phenotype/
tripal_phenotype.module - Implements hook_menu().
File
- tripal_phenotype/
tripal_phenotype.module, line 136 - Basic functionality for the phenotype module
Code
function tripal_phenotype_admin_phenotypes_listing() {
$output = '';
// set the breadcrumb
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l('Administration', 'admin');
$breadcrumb[] = l('Tripal', 'admin/tripal');
$breadcrumb[] = l('Chado', 'admin/tripal/chado');
$breadcrumb[] = l('Phenotypes', 'admin/tripal/chado/tripal_phenotype');
drupal_set_breadcrumb($breadcrumb);
// Add the view
$view = views_embed_view('tripal_phenotype_admin_phenotypes', 'default');
if (isset($view)) {
$output .= $view;
}
else {
$output .= '<p>The Tripal Phenotype Module uses primarily views to provide an '
. 'administrative interface. Currently one or more views needed for this '
. 'administrative interface are disabled. <strong>Click each of the following links to '
. 'enable the pertinent views</strong>:</p>';
$output .= '<ul>';
$output .= '<li>' . l('Phenotype Admin', 'admin/tripal/chado/tripal_phenotype/views/phenotypes/enable') . '</li>';
$output .= '</ul>';
}
return $output;
}