Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Haven't had much luck trying to find anyone else that is using node statistics with rules.
Basically I want to set up an e-mail alert that notifies users when a story has been viewed X number of times.
Figure the way to go about is to use a number comparison each time a node is viewed.
Ultimately I figure I could do a "statistics_get($node->nid)", but it seem like there should be a more graceful way?
Comments
Comment #1
Ken Hawkins CreditAttribution: Ken Hawkins commentedGroan. Typos. Maybe that should be my resolution for the new year: proofreading.
Comment #2
mitchell CreditAttribution: mitchell commentedPerhaps something like this would work:
Comment #4
mrjavarava CreditAttribution: mrjavarava commentedYes, I need a similar feature with Rules Statistics integration. Like a node be unpublished after x number of views. Subscribing.
Comment #5
mrjavarava CreditAttribution: mrjavarava commentedYes, I need a similar feature with Rules Statistics integration. Like a node be unpublished after x number of views. Subscribing.
Comment #6
TR CreditAttribution: TR commentedThere doesn't seem to be much interest in this as a feature, and no contributions from the community either ...
If you want to contribute some Rules events/conditions/actions for integration with the statistics module, then we can consider that for inclusion into Rules. Regardless, if you find it useful, then others might, so put it into a contributed module and we can try it!