You are here

function panels_mini_edit_layout in Panels 6.2

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

Pass through to the panels layout editor.

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

File

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

Code

function panels_mini_edit_layout($panel_mini) {
  if (!is_object($panel_mini)) {
    $panel_mini = panels_mini_load($panel_mini);
  }
  $output = panels_edit_layout($panel_mini->display, t('Save'));
  if (is_object($output)) {
    $panel_mini->display = $output;
    $panel_mini->did = $output->did;
    panels_mini_save($panel_mini);
    drupal_goto("admin/panels/panel-mini/{$panel_mini->name}/edit-layout");
  }
  drupal_set_title(check_plain($panel_mini->title));
  return $output;
}