I am trying to add some additional logic to the 'Promoted to front page' feature in Drupal 6. That is, rather than the boolean behavior there by default, I would like to add additional criteria that a node must meet before appearing on the home page.
Specifically, I don't want past events (as determined by a CCK Date field) appearing on the home page even if they are promoted.
Is there a way I can replace the content produced by node_page_default()
? The SQL there isn't dynamically generated, so I imagine the output would need to be replaced entirely.
(I realize that all this could be accomplished via Views, or maybe hook_cron, but I would prefer not to use those methods for a relatively minor quirk.)
Thanks in advance!