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.
Hi thanks for the module
when I create a rule I get the options - when a comment is created/when a comment is viewed/when content is created/when content is viewed etc all of those.
But I dont get an option for when a field is viewed/when a field updated.
Is it possible to add support for individual fields rather than whole nodes?
thanks for any help
Comments
Comment #1
TR CreditAttribution: TR commentedNo, Rules does not supply field-related events. Perhaps there's a contributed module that does that for you, or you can code your own events. See rules/modules/events.inc for how Rules implements entity hooks to provide entity events - you can do the same with field hooks. See https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/group... for a list of Field CRUD hooks.
I don't know what your use case is, but consider that there might be other/better ways to do what you want.
Comment #2
TR CreditAttribution: TR commented