Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you create a panels template with layout settings, there's no way to validate those settings.
includes/display_edit.inc has a function panels_edit_display_settings_form_validate which looks for a validate function in the template and calls it, but panels_edit_display_settings_form_validate doesn't appear to ever get called.
The attached patch fixes it by adding validate functions to the wrapped forms which in turn call panels_edit_display_settings_form_validate, though I'm not sure if this is the right approach.
Comment | File | Size | Author |
---|---|---|---|
validate_layout_settings.patch | 1.26 KB | dlerman2 | |
Comments
Comment #1
Letharion CreditAttribution: Letharion commentedPatch still applies.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedDoes this mean that the layout settings form actually still works?