function tripal_analysis_admin_analysis_view
2.x tripal_analysis.admin.inc | tripal_analysis_admin_analysis_view() |
3.x tripal_analysis.admin.inc | tripal_analysis_admin_analysis_view() |
Landing page for administration. Ensures Views are enabled & if not provides links to do so.
1 string reference to 'tripal_analysis_admin_analysis_view'
- tripal_analysis_menu in legacy/
tripal_analysis/ tripal_analysis.module - Implementation of hook_menu(). Entry points and paths of the module
File
- legacy/
tripal_analysis/ includes/ tripal_analysis.admin.inc, line 15 - Contains functions displaying administrative pages and forms.
Code
function tripal_analysis_admin_analysis_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('Analysis', 'admin/tripal/legacy/tripal_analysis');
drupal_set_breadcrumb($breadcrumb);
// Add the view
$view = views_embed_view('tripal_analysis_admin_analyses', 'default');
if (isset($view)) {
$output .= $view;
}
else {
$output .= '<p>The Analysis 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('Analysis View', 'admin/tripal/legacy/tripal_analysis/views/analyses/enable') . '</li>';
$output .= '</ul>';
}
return $output;
}