You are here

function panels_mini_edit_context in Panels 6.2

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

Form to edit context features of a mini panel.

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

File

panels_mini/panels_mini.admin.inc, line 557
Administrative items for the panels mini module.

Code

function panels_mini_edit_context($panel_mini, $next = NULL) {
  if (!empty($_POST)) {
    $panel_mini = panels_cache_get('panel_object:panel_mini', $panel_mini->name);
  }
  else {
    panels_cache_set('panel_object:panel_mini', $panel_mini->name, $panel_mini);
  }
  drupal_set_title(check_plain($panel_mini->title));
  return drupal_get_form('panels_mini_context_form', $panel_mini, $next);
}