function tripal_stock_admin_stock_view

2.x tripal_stock.admin.inc tripal_stock_admin_stock_view()
3.x tripal_stock.admin.inc tripal_stock_admin_stock_view()

Admin launchpad

Related topics

1 string reference to 'tripal_stock_admin_stock_view'
tripal_stock_menu in legacy/tripal_stock/tripal_stock.module
Implements hook_menu(). Adds menu items for the tripal_stock

File

legacy/tripal_stock/includes/tripal_stock.admin.inc, line 12
Administration of stocks

Code

function tripal_stock_admin_stock_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('Stocks', 'admin/tripal/legacy/tripal_stock');
  drupal_set_breadcrumb($breadcrumb);

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

  return $output;
}