You are here

function panels_mini_edit_layout_settings in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_mini/panels_mini.admin.inc \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_items in panels_mini/panels_mini.module

File

panels_mini/panels_mini.module, line 774
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, NULL, $panel_mini->title);
  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;
}