Hi,

Is there a hook I can use to programmatically filter whether heartbeat records an event or not? In my case I have a rule (rules module) that is triggered by a node creation event. This in turn records the event in the heartbeat stream. The rule is currently set up to record events for all cck content types and I need to limit this.

Currently I'm using hook_heartbeat_messages_alter() but I'd rather stop the problem at source rather than filter the messages everytime they are displayed - has to be a more efficient approach.

Background (ie why am I not just changing the rule?): I am using Drupal Commons(DC) which has pre-built heartbeat rules and I can't change these because the rules are exported into a DC feature which I can't overwrite with a custom feature (see http://drupal.org/node/1203480)

Cheers,
Crom