function tripal_feature_admin_feature_view
2.x tripal_feature.admin.inc | tripal_feature_admin_feature_view() |
3.x tripal_feature.admin.inc | tripal_feature_admin_feature_view() |
Launchpad for feature administration.
1 string reference to 'tripal_feature_admin_feature_view'
- tripal_feature_menu in legacy/
tripal_feature/ tripal_feature.module - Implements hook_menu().
File
- legacy/
tripal_feature/ includes/ tripal_feature.admin.inc, line 12 - Administration of features
Code
function tripal_feature_admin_feature_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('Features', 'admin/tripal/legacy/tripal_feature');
drupal_set_breadcrumb($breadcrumb);
// Add the view
$view = views_embed_view('tripal_feature_admin_features', 'default');
if (isset($view)) {
$output .= $view;
}
else {
$output .= '<p>The Feature 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('Features View', 'admin/tripal/legacy/tripal_feature/views/features/enable') . '</li>';
$output .= '</ul>';
}
// Add a summary chart.
//-----------------------------------
$output .= theme('tripal_feature_bar_chart_type_organism_summary');
drupal_add_js('
Drupal.behaviors.tripalFeature_moveAdminSummaryChart = {
attach: function (context, settings) {
jQuery("#tripal-feature-admin-summary").insertBefore( jQuery(".view-filters") );
}};
', 'inline');
return $output;
}