Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
2 Oct 2011 at 20:10 UTC
Updated:
29 Jul 2014 at 20:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bhosmer commentedWell, here goes my first try at contributing a patch to core.
Comment #2
bhosmer commentedComment #3
bhosmer commentedComment #5
bhosmer commentedComment #6
sunThe removals are OK, but should actually include the comment.
And the new condition actually needs to be used wherever #node_edit_form is currently used throughout core. (most likely, in tests only)
-13 days to next Drupal core point release.
Comment #7
bhosmer commentedFrom looking at the simpletest, I see it was also used in the forum. module too.
What comment are you referring to that still needs to be included?
Comment #8
sunThe chunk of lines you touched in node_form() can be removed entirely; i.e., including the comment, and without replacement.
Comment #9
bhosmer commentedCool. Thanks.
Now, what about forum.module:
I assume this entire function can be removed or not?
Comment #10
bhosmer commentedComment #12
bhosmer commentedComment #13
bhosmer commentedComment #15
bhosmer commentedComment #17
bhosmer commentedComment #19
bhosmer commentedWhat should I do with the forum problems? Any advice would be appreciated.
Comment #20
bfroehle commentedI split the relevant section of code out to forum_form_node_form_alter() (i.e., an implementation of hook_form_BASE_FORM_ID_alter).
Comment #21
sunThanks all!
Comment #22
chx commentedSo agreed. A followup patch should rename the node form to node_form_$node_type. But for now, this is great.
Comment #23
catch#20: remove_pound_node_edit_form-1297410.patch queued for re-testing.
Comment #25
bfroehle commentedRerolled after /core.
Comment #26
dries commentedNice little clean-up. Committed to 8.x. Thanks!
Comment #27
sunThis needs an API change notice.
Comment #28
bfroehle commentedChange notice created: $form['#node_edit_form'] removed
Comment #29
xjmI updated the change notice with corrections from the comments.