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.
I have code that does flag('flag', $flag_action, $instance->nid, $account)
and it does flag the correct user. However, "flagging-user" points to the person that caused that to happen, so the Rules stuff that produces email sends it to the one doing it rather than the person being flagged. I do not see a token for [flagged-user:mail]
. I need this email to go to the flagged user; copying the flagging-user would be okay. How can this be done in Rules?
Comments
Comment #2
joachim CreditAttribution: joachim commentedIs there a generic token for the flagged entity that you can start from?
Comment #3
NancyDruYes, there is.