I have a view that displays matching nodes, based on contextual arguments.
I'd like to create an exposed filter that filters by node title, displaying a drop down (select) menu with options for every node in the result set.
I can modify / set the contents of the exposed filter using hook_form_alter, but the views query hasn't executed when this hook is called, so I don't have access to the result set. If I use hook_views_post_execute then I have access to the result set, but the exposed filters form has already been rendered.
I know that I could write an EntityFieldQuery to select the nodes and set them within hook_form_alter, but that isn't very DRY as I would effectively be re-writing (and executing) the same query that Views will be executing anyway.
What's the best practice way to achieve what I'm looking for?