I have a View in which i mention 3 fields then i displayed as a block.

I want to want to change value of these fields.

Which hook will i use so i can change content to fields on page load ?

I tried hook_view, hook_block, they don't help me.


1 Answer 1


You could use hook_views_pre_render to alter the results of the View before Views passes the data of for rendering.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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