function tripal_library_admin_libraries_listing
2.x tripal_library.admin.inc | tripal_library_admin_libraries_listing() |
3.x tripal_library.admin.inc | tripal_library_admin_libraries_listing() |
Admin launchpad
Related topics
1 string reference to 'tripal_library_admin_libraries_listing'
- tripal_library_menu in legacy/
tripal_library/ tripal_library.module - Implements hook_menu().
File
- legacy/
tripal_library/ includes/ tripal_library.admin.inc, line 12 - Admin launchpad
Code
function tripal_library_admin_libraries_listing() {
$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('Libraries', 'admin/tripal/legacy/tripal_library');
drupal_set_breadcrumb($breadcrumb);
// Add the view
$view = views_embed_view('tripal_library_admin_libraries', 'default');
if (isset($view)) {
$output .= $view;
}
else {
$output .= '<p>The Tripal Library 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('Library Admin', 'admin/tripal/legacy/tripal_library/views/libraries/enable') . '</li>';
$output .= '</ul>';
}
return $output;
}