Download & Extend

Warning: Missing argument 3 for community_tags_ui_form_community_tags_form_alter()

Project:Community Tags
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

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.

AttachmentSize
community_tags_ui_form_alter_fix.patch916 bytes

Comments

#1

Works!

#2

Status:needs review» reviewed & tested by the community

I can also confirm it works!

nobody click here