Using Drupal 6.20, community_tags_ui module 6.x-2.0-beta1. Enabling the community_tags_ui module results in the following Warning: Warning: Missing argument 3 for community_tags_ui_form_community_tags_form_alter() in community_tags_ui_form_community_tags_form_alter() (line 108 of /var/www/code/webroot/sites/all/modules/community_tags/community_tags_ui/community_tags_ui.module).
I looked into this and found that the implementation of hook_form_FORM_ID_alter() on line 108 of community_tags_ui.module is being passed the $form_id
parameter. In Drupal 6, hook_form_FORM_ID_alter() only requires the &$form
and &$form_state
parameters. Removing the $form_id
parameter fixed this issue. I also fixed the comments to reflect that hook_form_FORM_ID_alter() is being implemented and not hook_form_alter(). Patch is attached for review.
Comment | File | Size | Author |
---|---|---|---|
community_tags_ui_form_alter_fix.patch | 916 bytes | stephenh |
Comments
Comment #1
hpk CreditAttribution: hpk commentedWorks!
Comment #2
charos CreditAttribution: charos commentedI can also confirm it works!