function views_ui_view_preview_section_display_category_links

Returns a link to editing a certain display setting.

1 call to views_ui_view_preview_section_display_category_links()
template_preprocess_views_ui_view_preview_section in drupal/core/modules/views/views_ui/theme/theme.inc
Theme preprocess for theme_views_ui_view_preview_section().

File

drupal/core/modules/views/views_ui/views_ui.module, line 471
Provide structure for the administrative interface to Views.

Code

function views_ui_view_preview_section_display_category_links(ViewUI $view, $type, $title) {
  $display = $view->display_handler->display;
  $links = array(
    $type . '-edit' => array(
      'title' => t('Edit @section', array(
        '@section' => $title,
      )),
      'href' => "admin/structure/views/nojs/display/{$view->get('name')}/{$display['id']}/{$type}",
      'attributes' => array(
        'class' => array(
          'views-ajax-link',
        ),
      ),
    ),
  );
  return $links;
}