You are here

function panels_edit_layout_settings_form_validate in Panels 5.2

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

File

includes/display_edit.inc, line 561

Code

function panels_edit_layout_settings_form_validate($form_id, $form_values, $form) {
  list($display, $finish, $destination) = $form_values['variables'];
  panels_panel_settings_validate($form_id, $form_values, $form);
  $layout = $form_values['layout'];
  if (!empty($layout['settings validate']) && function_exists($layout['settings validate'])) {
    $layout['settings validate']($form_values['layout_settings'], $form['layout_settings'], $display, $layout, $display->layout_settings);
  }
}