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.
// Replace submit callback and use our own function.
$form['#submit'] = str_replace('system_settings_form_submit', 'variable_settings_form_submit', $form['#submit']);
This breaks the form submit handlers of forms that have a submit handler whose name contains 'system_settings_form_submit'. For example, https://www.drupal.org/project/taxonomy_edge has a taxonomy_edge_system_settings_form_submit_custom(). Variable module rewrites this to a function that doesn't exist, causing the Taxonomy Edge configuration form to crash on submit.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2599940.variable.submit-handler-change-breaks-other-forms.patch | 1.1 KB | joachim |
Comments
Comment #2
joachim CreditAttribution: joachim commented