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

TR’s picture

Issue summary: View changes
Status: Active » Fixed

No, 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.

TR’s picture

Status: Fixed » Closed (fixed)