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.

Thanks

share|improve this question

1 Answer

up vote 2 down vote accepted

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

share|improve this answer

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

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