Say I have a content type, nodes, that I want to serve through a view.
The problem is, the results are based on a series of complex requirements and conditions that aren't easily controlled through the Views UI. That is, I would like to determine which nodes to output in the view in code - is there a hook I can use to effectively build up the results, which are then fed through to the 'dumb' view?
In this way, I can do all my complex querying and calculations in code, then simply provide an array or similar of objects that the view will treat as its results, and simply spit them out?
EDIT: This doesn't necessarily have to be mediated through views, it's just I can't build the query I want in views easily because it's got a lot of moving parts.