One thing that bugged me about overriding a view, was that all the fields in the overridden view would be added at the end (and filters, and sorts etc...)
The patch in the next post allows order to be maintained. I don't really like the use of create_function() here, but couldn't see how else to do it unless php 5.3 support is mandated for this module. I think anonymous functions would work better in that case.
I've only tested this for views components, but it works very well.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | features-override-1309312-1.patch | 3.51 KB | cdale |
Comments
Comment #1
cdale commentedThe patch.
Comment #2
nedjoThanks!
All changes need to be made first to the D7 branch. Could you please adapt for that version (should be only minor difference).
I've assigned you as a maintainer, so once this is ready you can commit to D7 and then D6.
Comment #3
nedjoThanks, applied.
Comment #4
mh86 commentedThis code throws warnings with existing feature overrides:
I know updating the components will help, but following code would prevent the warnings: