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.

CommentFileSizeAuthor
community_tags_ui_form_alter_fix.patch916 bytesstephenh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hpk’s picture

Works!

charos’s picture

Status: Needs review » Reviewed & tested by the community

I can also confirm it works!