function tripal_pub_admin_pub_view

2.x tripal_pub.admin.inc tripal_pub_admin_pub_view()
3.x tripal_pub.admin.inc tripal_pub_admin_pub_view()

Admin launchpad

Related topics

1 string reference to 'tripal_pub_admin_pub_view'
tripal_pub_menu in legacy/tripal_pub/tripal_pub.module
Implements hook_menu().

File

legacy/tripal_pub/includes/tripal_pub.admin.inc, line 12
Administration of publications

Code

function tripal_pub_admin_pub_view() {
  $output = '';

  // set the breadcrumb
  $breadcrumb = array();
  $breadcrumb[] = l('Home', '<front>');
  $breadcrumb[] = l('Administration', 'admin');
  $breadcrumb[] = l('Tripal', 'admin/tripal');
  $breadcrumb[] = l('Chado', 'admin/tripal/legacy');
  $breadcrumb[] = l('Publications', 'admin/tripal/legacy/tripal_pub');
  drupal_set_breadcrumb($breadcrumb);

  // Add the view
  $view = views_embed_view('tripal_pub_admin_publications', 'default');
  if (isset($view)) {
    $output .= $view;
  }
  else {
    $output .= '<p>The Publications 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('Publications View', 'admin/tripal/legacy/tripal_pub/views/pubs/enable') . '</li>';
    $output .= '</ul>';
  }

  return $output;
}