Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Jan 2011 at 16:34 UTC
Updated:
20 Sep 2011 at 15:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
drewish commentedI'll take a swing at this.
Comment #2
drewish commentedHow's this look?
Comment #3
jhodgdonI'm not sure I like the bit about "most modules use hook_form_alter()". Actually, at least in D7 I think the opposite is true. And I prefer hook_form_FORM_ID_alter() because it is (a) self-documenting which form you are altering in the function name and (b) you don't have to do a big switch on the form ID because it is already specific.
I guess I'll have to figure out this git stuff so I can commit this eventually. :)
Comment #5
jhodgdonThis is a duplicate of a new and more current issue:
#1229868: hook_form_BASE_FORM_ID_alter(), hook_form_alter(), and hook_form_FORM_ID_alter() doc inconsistent.