\hook_views_pre_build
function
This hook is called right before the build process, but after displays are attached and the display performs its pre_execute phase.

This hook is called right before the build process, but after displays are attached and the display performs its pre_execute phase.

Adding output to the view can be accomplished by placing text on $view->attachment_before and $view->attachment_after.

Comments

phponwebsites’s picture

I want to pass arguments like page=2 from views pager to url.
I tried to use hook_views_pre_build(). But i didn't know how to pass arguments with pager>