tripal_genetic.admin.inc 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. function tripal_genetic_admin_genetics_listing() {
  3. $output = '';
  4. // set the breadcrumb
  5. $breadcrumb = array();
  6. $breadcrumb[] = l('Home', '<front>');
  7. $breadcrumb[] = l('Administration', 'admin');
  8. $breadcrumb[] = l('Tripal', 'admin/tripal');
  9. $breadcrumb[] = l('Chado', 'admin/tripal/chado');
  10. $breadcrumb[] = l('Genetics', 'admin/tripal/chado/tripal_genetic');
  11. drupal_set_breadcrumb($breadcrumb);
  12. // Add the view
  13. $view = views_embed_view('tripal_genetic_admin_genetics','default');
  14. if (isset($view)) {
  15. $output .= $view;
  16. }
  17. else {
  18. $output .= '<p>The Tripal Genetic Module uses primarily views to provide an '
  19. . 'administrative interface. Currently one or more views needed for this '
  20. . 'administrative interface are disabled. <strong>Click each of the following links to '
  21. . 'enable the pertinent views</strong>:</p>';
  22. $output .= '<ul>';
  23. $output .= '<li>'.l('Genetic Admin', 'admin/tripal/chado/tripal_genetic/views/genetics/enable').'</li>';
  24. $output .= '</ul>';
  25. }
  26. return $output;
  27. }