You are here

function panels_mini_edit_layout_settings in Panels 6.2

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

Pass through to the panels layout settings editor.

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

File

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

Code

function panels_mini_edit_layout_settings($panel_mini, $next = NULL) {
  if (!is_object($panel_mini)) {
    $panel_mini = panels_mini_load($panel_mini);
  }
  if (empty($next)) {
    $button = t('Save');
    $dest = "admin/panels/panel-mini/{$panel_mini->name}/edit-settings";
  }
  else {
    $button = t('Save and proceed');
    $dest = "admin/panels/panel-mini/{$panel_mini->name}/edit-context/next";
  }
  $output = panels_edit_layout_settings($panel_mini->display, $button);
  if (is_object($output)) {
    $panel_mini->display = $output;
    $panel_mini->did = $output->did;
    panels_mini_save($panel_mini);
    drupal_goto($dest);
  }
  drupal_set_title(check_plain($panel_mini->title));
  return $output;
}