tripal_natural_diversity.admin.inc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * @file
  4. * Administration of the natural diversity module
  5. */
  6. /**
  7. * Admin Launchpad
  8. *
  9. * @ingroup tripal_legacy_natural_diversity
  10. */
  11. function tripal_natural_diversity_admin_natdiv_view() {
  12. $output = '';
  13. // set the breadcrumb
  14. $breadcrumb = array();
  15. $breadcrumb[] = l('Home', '<front>');
  16. $breadcrumb[] = l('Administration', 'admin');
  17. $breadcrumb[] = l('Tripal', 'admin/tripal');
  18. $breadcrumb[] = l('Chado', 'admin/tripal/legacy');
  19. $breadcrumb[] = l('Diversity Experiments', 'admin/tripal/legacy/tripal_natdiv');
  20. drupal_set_breadcrumb($breadcrumb);
  21. // Add the view
  22. $view = views_embed_view('tripal_natural_diversity_admin_natdiv_exp','default');
  23. if (isset($view)) {
  24. $output .= $view;
  25. }
  26. else {
  27. $output .= '<p>The Tripal Natural Diversity Module uses primarily views to provide an '
  28. . 'administrative interface. Currently one or more views needed for this '
  29. . 'administrative interface are disabled. <strong>Click each of the following links to '
  30. . 'enable the pertinent views</strong>:</p>';
  31. $output .= '<ul>';
  32. $output .= '<li>'.l('Natural Diversity Experiments Admin', 'admin/tripal/legacy/tripal_natdiv/views/natdiv_exp/enable').'</li>';
  33. $output .= '</ul>';
  34. }
  35. return $output;
  36. }