Now that Drupal 7 has the standardized facility of cleaning out submitted form values prior to storing them, we should
1) make sure that it's actually used throughout core.
2) give modules a chance to possibly clean their internal values, too. (I have a concrete use-case for that.)
On 2), the simple drupal_alter() helps modules that inject additional form elements into a form, allowing them to remove the submitted form values for those elements before the primary submit handler goes along and stores all submitted form values in the database (most often, that is some kind of serialization process).
Comments
Comment #1
sundrupal.form-state-values-clean.0.patch queued for re-testing.
Comment #2
sundrupal.form-state-values-clean.0.patch queued for re-testing.
Comment #3
sunFeedback, anyone?
Comment #4
sundrupal.form-state-values-clean.0.patch queued for re-testing.
Comment #5
sundrupal.form-state-values-clean.0.patch queued for re-testing.
Comment #7
sunWoah. A CVS patch! ;)
Comment #8
tstoecklerAs the example hook demonstrates I think a hook_form_state_FORM_ID_values_clean_alter() would be cool. Generally, very nice suggestion, though, I like this.
Comment #24
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #25
smustgrave commentedWith it turning to a service in https://www.drupal.org/node/2121003 I believe this may outdated.