Pass view contextual filter arguments programmatically I want to pass contextual filter arguments programmatically to a view. I know it can be done through views_get_view and views_embed_view, but I want to pass it to a view's page display. Also I want to pass multiple arguments to the view, so it won't be good to pass all the arguments in the url. 
I tried to pass the arguments using $view-&gt;args = implode('+', $args); in hook_views_pre_render, but it didn't work.
Does anyone know how to pass contextual filter arguments using any of view hooks?
I got the solution. It can be done using hook_views_pre_view(). Since hook_views_pre_view() allows altering a view at the very beginning of views processing, before anything is done, I am able to feed the arguments to the view.

function MODULE_NAME_views_pre_view(&amp;$view, &amp;$display_id, &amp;$args) {
  if ($view-&gt;name == 'myview' &amp;&amp; $display_id == 'page_1') {
    $tids = custom_function();
    $args[] = implode('+', $tids);
  }
}


Hope this is useful to someone :)