When this module is enabled, settings at /admin/config/system/site-information (for stuff like Site name, Slogan, Email address, etc. are not saved. The footer message is saved, though.
I'll attach a patch it a bit, but this change in footer_message.module fixed it for me.
- $form['actions']['submit']['#submit'][] = 'footer_message_form_system_site_information_settings_submit';
+ $form['#submit'][] = 'footer_message_form_system_site_information_settings_submit';
I don't know why the existing handler attachment didn't work. I searched the web and found examples of both, but I couldn't find any official documentation for why we should prefer one over the other.
This fix works on Drupal 8.6.2. I haven't tested it on earlier versions, and I wonder if something in core changed since this module was released.
Comments
Comment #2
jeffamHere's a patch.
Comment #3
patelmayank7552 commentedHi @jeffam and @andrew_tspkh,
I have applied the patch and checked it is allowing to save other values https://sitename/admin/config/system/site-information on this form.
And I have added the comment for submitting function called to save the settings.
Prefer the images for reference.
Creating a patch for coding standards to be followed.
Comment #4
patelmayank7552 commentedComment #5
andrew_tspkhThank you for a patch.
Comment #7
andrew_tspkh