Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It's possible for arguments can make use of additional fields as well as field handlers, and probably filters and sorts too.
Hence the add_additional_fields() could really do to be moved up to the views_handler class.
Comment | File | Size | Author |
---|---|---|---|
#8 | views-move_add_additional_fields_up-1321018-8.patch | 4.63 KB | Andrew Answer |
|
Comments
Comment #1
dawehnerThe gorupby support should probably be just part of the field so some kind of refactoring might be required.
Comment #2
pcambraJust needed this for areas which behave the same as fields for this part, moved the add additional fields method one level up and works fine.
I've kept the group thing just in the field, not really sure how that works.
Comment #4
pcambraDumb mistake, this one should be better
Comment #5
dawehnerThe change really looks great, though to be able to sleep better some manual testing by an independent person would be cool :) (I won't trust the test coverage at all in D7)
Comment #6
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 6 year old patch in #4 to views_handler_field.inc and handlers.inc does not apply to the latest views 7.x-3.x-dev and if still applicable needs to be rerolled.
Comment #7
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.
Comment #8
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled/fixed after last commits.