1

How do I change the order of the Views row fields (programmatically) not by Views UI?

E.g: the last field should come up first in the list.

Any hooks available?

Note: I can not use the Views UI, as I don't own the code for feature re-create, so I'm looking for some hooks.

enter image description here

1

Go with one of Views API hooks, e.g: hook_views_pre_render

You can access Views rows by $views->result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.