I have a view which, in addition to showing event nodes, also shows "fake" event nodes. The "fake" event nodes are inserted in
The view also has an exposed filter to filter out content tagged with a certain term ID on the event_type field. The exposed filter list has gotten too large so now it would make sense to only show the terms in the list that can filter out the view results (including the "fake" events).
Now I tried this with
hook_form_alter(), but the problem is that the "fake" event nodes aren't available by using views_get_view_result() and I'm not sure what other function could be used to do that here.
I tried using
hook_views_pre_view(), but I could not find how to change values in the exposed filter in any of those.
Where can I see the values of the view result at the same time as the value options in the exposed filter?