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.
Currently, there are several differing naming schemes for the #process
callback for RenderAPI elements (those returned from hook_elements
): expand_*
, form_expand_*
and process_*
. This patch unifies the naming to form_process_*
. It does not change any functionality whatsoever.
Comment | File | Size | Author |
---|---|---|---|
#5 | unify-process-callbacks.patch | 6.74 KB | kkaefer |
unify-process-callbacks.patch | 7.08 KB | kkaefer | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedI tested and code reviewed. RTBC.
Comment #2
Wim LeersExcellent. This has bothered me too. Thanks, kkaefer :)
Comment #3
Wim LeersComment #4
Dries CreditAttribution: Dries commentedCan we reroll? Doesn't seem to apply.
Comment #5
kkaefer CreditAttribution: kkaefer commentedUpdated. Ran some of the tests, nothing failed.
Comment #6
Damien Tournoud CreditAttribution: Damien Tournoud commentedApplied, grepped thru the core to verify that no traces of old functions remains. Everything looks good.
egrep -r '#process' .
returns:Neat.
Comment #7
Dries CreditAttribution: Dries commentedNice little clean-up. I've committed this to CVS HEAD. I'm marking this 'code needs work' as it probably requires a couple of documentation updates, both in the upgrading guide as in the API docs for CVS HEAD. Please mark this closed once the documentation is in good shape. Thanks for the great work!
Comment #8
Dries CreditAttribution: Dries commentedNice little clean-up. I've committed this to CVS HEAD. I'm marking this 'code needs work' as it probably requires a couple of documentation updates, both in the upgrading guide as in the API docs for CVS HEAD. Please mark this closed once the documentation is in good shape. Thanks for the great work!
Comment #9
kkaefer CreditAttribution: kkaefer commentedDocumented at http://drupal.org/node/224333#process-functions.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
axyjo CreditAttribution: axyjo commentedFixed spelling mistake from 'occured' to 'occurred' in http://drupal.org/update/modules/6/7#process_functions
Comment #12
do CreditAttribution: do commentedIn the current Drupal7.0-beta2 the function "form_process_ahah" is gone. What is its replacement?
The documentation http://drupal.org/update/modules/6/7 about updateing modules still references it.
Thanks,
udo