summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/display-edit.inc7
-rw-r--r--plugins/task_handlers/panel_context.inc7
2 files changed, 14 insertions, 0 deletions
diff --git a/includes/display-edit.inc b/includes/display-edit.inc
index c0e12b4..7d00d6b 100644
--- a/includes/display-edit.inc
+++ b/includes/display-edit.inc
@@ -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
diff --git a/plugins/task_handlers/panel_context.inc b/plugins/task_handlers/panel_context.inc
index a4ea3ac..fba1106 100644
--- a/plugins/task_handlers/panel_context.inc
+++ b/plugins/task_handlers/panel_context.inc
@@ -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'];