Issue #1234616 by dlerman2: No way to validate layout settings on layouts that have...
authorEarl Miles
Fri, 2 Dec 2011 19:37:22 +0000 (11:37 -0800)
committerEarl Miles
Fri, 2 Dec 2011 19:37:22 +0000 (11:37 -0800)
includes/display-edit.inc
plugins/task_handlers/panel_context.inc

index c0e12b4..7d00d6b 100644 (file)
@@ -132,6 +132,13 @@ function panels_edit_display_form($form, &$form_state) {
 }
 
 /**
+ * Handle form validation of the display content editor.
+ */
+function panels_edit_display_form_validate($form, &$form_state) {
+  panels_edit_display_settings_form_validate($form, $form_state);
+}
+
+/**
  * Handle form submission of the display content editor.
  *
  * This reads the location of the various panes from the form, which will
index a4ea3ac..fba1106 100644 (file)
@@ -674,6 +674,13 @@ function panels_panel_context_edit_content($form, &$form_state) {
   return $form;
 }
 
+/**
+ * Validate changes to the panel content form.
+ */
+function panels_panel_context_edit_content_validate(&$form, &$form_state) {
+  panels_edit_display_form_validate($form, $form_state);
+}
+
 function panels_panel_context_edit_content_submit(&$form, &$form_state) {
   panels_edit_display_form_submit($form, $form_state);
   $handler = &$form_state['handler'];