Closed (fixed)
Project:
Webform
Version:
7.x-3.9
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 19:25 UTC
Updated:
25 May 2011 at 14:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchI thought we had already done this, but I'm guessing that our implementation was broken by a change in Drupal 7 at some point. This is possible in D6 through this feature: #598714: Implement hook_content_extra_fields(), but apparently the equivalent hook (hook_field_extra_fields) is not implemented correctly in Webform for Drupal 7.
Comment #2
pwaterz commentedI will take a look tomorrow and try and submit a patch.
Comment #3
pwaterz commentedhere is my patch
Comment #4
quicksketchLooks like this patch still has a bit of code probably copied from poll.module:
Shouldn't that just be "webform"?
Comment #5
pwaterz commentedwoops here yea go.
Comment #6
swentel commentedThere's another older patch at #1040834: Refactor webform_field_extra_fields() - have marked it as duplicate now.
I'm not sure if the 'form' is needed, because I don't think it does anything right ?
Comment #7
quicksketchA good point swentel, I think we can remove that since Webform doesn't add anything to the node form.
Comment #8
pwaterz commentedmake sense here is the revised patch.DONT USE THIS ONE. Php error
Comment #9
pwaterz commentedUse this one.
Comment #10
quicksketchThanks pwaterz, I've committed this simplified patch plus removing some legacy code that should no longer be necessary regarding field weights.
Comment #11
pwaterz commentedsweet!