function panels_edit_display_settings_form_validate in Panels 7.3
Same name and namespace in other branches
- 6.3 includes/display-edit.inc \panels_edit_display_settings_form_validate()
Validate the layout settings form.
2 calls to panels_edit_display_settings_form_validate()
- panels_edit_display_form_validate in includes/
display-edit.inc - Handle form validation of the display content editor.
- panels_layouts_ui::edit_form_validate in plugins/
export_ui/ panels_layouts_ui.class.php - Validate callback for the edit form.
File
- includes/
display-edit.inc, line 302 - Core Panels API include file containing various display-editing functions. This includes all the basic editing forms (content, layout, layout settings) as well as the ajax modal forms associated with them.
Code
function panels_edit_display_settings_form_validate($form, &$form_state) {
if ($function = panels_plugin_get_function('layouts', $form_state['layout'], 'settings validate')) {
$function($form_state['values']['layout_settings'], $form['layout_settings'], $form_state['display'], $form_state['layout'], $form_state['display']->layout_settings);
}
}