Using the Rules module to answer your question seems to me like the most straight forward solution.
Here is a rule (in Rules export format), which does exactly what your question is about:
{ "rules_email_reviewer_after_admin_updates_custom_field" : {
"LABEL" : "eMail reviewer after admin updates custom field",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules" ],
"ON" : { "node_update" : [] },
"IF" : [
{ "user_has_role" : {
"account" : [ "site:current-user" ],
"roles" : { "value" : { "3" : "3" } }
}
},
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_free_format_text" } },
{ "NOT data_is" : {
"data" : [ "node-unchanged:field-free-format-text" ],
"value" : [ "node:field-free-format-text" ]
}
},
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_assigned_user" } }
],
"DO" : [
{ "mail" : {
"to" : [ "node:field-assigned-user:mail" ],
"subject" : "Node with id=[node:nid] is waiting your review",
"message" : "An administrator assigned the Node with id=[node:nid] to you, please review it.",
"from" : [ "site:current-user:mail" ],
"language" : [ "" ]
}
},
{ "drupal_message" : { "message" : "User [node:field-assigned-user:name] will be notified by eMail that you just assigned this node to that user (waiting review)." } }
]
}
}
This rule is based on these assumptions:
- The admin who performs the change, is a user with role id = 3 (adapt to fit your needs).
- The field with machine name
field_free_format_text
is a single value field, and reflects the custom field that is changed (adapt the machine name to fit your needs, pick whatever type for this field that fits your needs).
- The field with machine name
field_assigned_user
is an entity reference field to a user entity, defined as required, and with a single value (adapt the machine name to fit your needs).
Some more details about the above rule:
- The Rules Actions will only be performed if a user with role "administrator" updates a node, and actually also updates the value of the
field_free_format_text
field.
- This Rule will perform these Rules Actions:
- Send an eMail (1) From the eMail Id of the administrator (2) To the eMail Id of the user referenced via the
field_assigned_user
field, and (3) with an eMail Body which looks similar to this example: An administrator assigned the Node with id=71 to you, please review it.
- Show an informational message to the administrator, which looks similar to this example:
User Pierre.Vriens will be notified by eMail that you just assigned this node to that user (waiting review).