You are here

function panels_mini_preview_panel in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \panels_mini_preview_panel()

Provide an administrative preview of a mini panel.

1 string reference to 'panels_mini_preview_panel'
_panels_mini_menu in panels_mini/panels_mini.admin.inc
Implementation of hook_menu().

File

panels_mini/panels_mini.admin.inc, line 258
Administrative items for the 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);
}