Autoexpire is a perfect solution for my site except for one point: I want it to reset the sticky-bit to 0 instead of un-publishing the node. I am thinking of contributing a patch that allows the admin to replace the "UPDATE" statement with a snippet of PHP code on the admin form. If no code has been defined, or if the snippet returns FALSE, then hook_cron() will perform the default UPDATE statement.

Would that be acceptable to the maintainers? Would they consider integrating this into subsequent releases if it passes muster? I will be happy to cooperate in any way I can.

Comments

lsiden’s picture

Upon reflection, I prefer to declare a new hook that other modules can implement. If a module implements the hook and returns TRUE, no further action is taken. Otherwise, autoexpire_cron() will perform the default UPDATE action and reset the published status to 0. D'accord?