HI
I'm about to finish writing a module allows to refine current view results by taxonomy terms, displayed in a separate block. Something like exposed filters does but with links instead of select and number of items after each link. To calculate a number of items that will be returned when user clicks on some term I'm using views_build_view function
<?php
views_build_view('items', $default_view, null, false, 0, 0, 0, $exposed_filter_values);
?>I'm also want to handle arguments here and pass it to the code below as third argument.
For example, user created a view with url "news/recent" this view has one argument - taxonomy term id (no argument handling code specified!!!)
Let's say user clicks on some link and his url will looks like "news/recent/32,33,34" - view will handle last 3 id's as term id's and works fine.
I need to know how can I get an arguments values in my module to pass it into views_build_view function?
So if user opens news/recent/32 - I want to get array, containing 33, if just news/recent - an empty array.
Of course, I can parse url, but I want to get rid of this. Any views internal function I can use? Or something else?