Currently I have a view with an exposed form to input a numeric param used in a views filter (a distance, used in proximity search). I would like to modify this system to no longer be exposed, but to start at e.g. 10 (miles) and if the view result doesn't contain enough of one kind of node, repeat the view with a larger search distance until I get the result I want, then render the view.
This is Views 2, location, Drupal 6.
Seems like hook_views_pre_render(&$view) is the place to put my code to check on what has been returned by the view, and alter the view accordingly, but I don't know if or how I should call the view again from the top with the modified $view.
UPDATE: Looks like in hook_views_pre_render, if a pager is used, you only get the nodes that are displaying on the current page. I need to be able to see the entire set and reorder it. Or at least if there is no node of type A be able to look down the list and promote one of A into the current page.