You are here

function panels_mini_preview_panel in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_mini/panels_mini.admin.inc \panels_mini_preview_panel()

Provide an administrative preview of a mini panel.

1 string reference to 'panels_mini_preview_panel'
panels_mini_menu_items in panels_mini/panels_mini.module

File

panels_mini/panels_mini.module, line 330
panels_mini.module

Code

function panels_mini_preview_panel($mini) {
  $mini->display->args = array();
  $mini->display->css_id = panels_mini_get_id($mini->name);
  panels_load_include('plugins');
  $mini->context = $mini->display->context = panels_context_load_contexts($mini);
  drupal_set_title(filter_xss_admin($mini->title));
  return panels_render_display($mini->display);
}