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.
Related topics
1 string reference to 'tripal_feature_admin_feature_view'
- tripal_feature_menu in tripal_feature/
tripal_feature.module - Implements hook_menu().
File
- 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/chado');
$breadcrumb[] = l('Features', 'admin/tripal/chado/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/chado/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;
}