You are here

function _panels_edit_layout_settings in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/display-layout-settings.inc \_panels_edit_layout_settings()

Handle calling and processing of the form for editing display layout settings.

Helper function for panels_edit_layout_settings().

See also

panels_edit_layout_settings() for details on the various behaviors of this function.

1 call to _panels_edit_layout_settings()
panels_edit_layout_settings in ./panels.module
API entry point for configuring the layout settings for a given display.

File

includes/display_edit.inc, line 471

Code

function _panels_edit_layout_settings($display, $finish, $destination, $title) {

  // Break out the form pieces so we can return the new $display upon
  // successful submit.
  $form_id = 'panels_edit_layout_settings_form';
  $form = drupal_retrieve_form($form_id, $display, $finish, $destination, $title);
  if ($result = drupal_process_form($form_id, $form)) {

    // successful submit
    return $result;
  }
  $output = drupal_render_form($form_id, $form);
  return $output;
}