function tripal_featuremap_admin_featuremaps_listing

2.x tripal_featuremap.admin.inc tripal_featuremap_admin_featuremaps_listing()
3.x tripal_featuremap.admin.inc tripal_featuremap_admin_featuremaps_listing()

Admin launchpad

Related topics

1 string reference to 'tripal_featuremap_admin_featuremaps_listing'
tripal_featuremap_menu in tripal_featuremap/tripal_featuremap.module
Implements hook_menu().

File

tripal_featuremap/includes/tripal_featuremap.admin.inc, line 12
Administration of feature maps

Code

function tripal_featuremap_admin_featuremaps_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('Maps', 'admin/tripal/chado/tripal_featuremap');
  drupal_set_breadcrumb($breadcrumb);

  // Add the view
  $view = views_embed_view('tripal_featuremap_admin_featuremaps', 'default');
  if (isset($view)) {
    $output .= $view;
  }
  else {
    $output .= '<p>The Tripal Feature Map 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('Feature Map Admin', 'admin/tripal/chado/tripal_featuremap/views/featuremaps/enable') . '</li>';
    $output .= '</ul>';
  }

  return $output;
}