function tripal_views_admin_integration_view
2.x tripal_views.module | tripal_views_admin_integration_view() |
Admin launchpad
Related topics
1 string reference to 'tripal_views_admin_integration_view'
- tripal_views_menu in tripal_views/
tripal_views.module - Implements hook_menu(). This hook provides details about new menu items added by this module
File
- tripal_views/
tripal_views.module, line 285 - Basic Tripal Views functionality
Code
function tripal_views_admin_integration_view() {
$output = '';
// set the breadcrumb
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l('Administration', 'admin');
$breadcrumb[] = l('Tripal', 'admin/tripal');
$breadcrumb[] = l('Intgrations', 'admin/tripal/views-integrations');
drupal_set_breadcrumb($breadcrumb);
// Add the view
$view = views_embed_view('tripal_views_admin_integrations', 'default');
if (isset($view)) {
$output .= $view;
}
else {
$output .= '<p>The Tripal Views 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('Tripal Views Admin', 'admin/tripal/views-integrations/views/integrations/enable') . '</li>';
$output .= '</ul>';
}
return $output;
}