Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2010 at 15:04 UTC
Updated:
11 Apr 2011 at 15:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
jhodgdonHere's a patch. It looks like when the former form_alter() function was split into two pieces, the doc wasn't updated.
Comment #3
jhodgdonThis failure is due to:
#990814: Intermittent test failures in field.test
which I HOPE will be fixed soon.
Comment #4
jhodgdon#1: 988318.patch queued for re-testing.
Comment #5
elrayle commented#1: 988318.patch queued for re-testing.
Comment #6
elrayle commentedCorrectly updated to describe the function as an override of hook_form_FORM_ID_alter() which allows modification of a specific form, in this case the node edit form, rather than implementing hook_form_alter() and checking the form ID, or using long switch statements to alter multiple forms.
Comment #7
drewish commentedyeah looks good.
Comment #8
jhodgdonNeeds to go to d8 and then d7
Comment #9
dries commentedIt would be better if the documentation described why/how the form is altered. Is that a change we can make?
Comment #10
jhodgdonIt does say:
+ * This function alters language fields on node edit forms when a translation is
+ * about to be created.
I'm not sure what more needs to be said -- what do you think is missing?
Comment #11
dries commentedAgreed that is OK as is. I don't want to hold up this simple correction, so I committed to my local 8.x tree which I'll push out later tonight. Moving to 7.x in the mean time. Thanks!
Comment #12
webchickCommitted to 7.x. Thanks!