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,
I have a drupal site with content type as people, in that content type i have one field name as email. What I want is, Whenever the new user registered, I want to check the user email with email field of people content type, if this two field matches set this user as a author to that content.
I don't know how to execute this process...
Can anyone give me a solution.?
Comments
Comment #2
TR CreditAttribution: TR commentedComment #3
TR CreditAttribution: TR commentedUse the entity_query action to find the "person" entity, then use data_set to set the author of that entity if it is found.
Comment #4
TR CreditAttribution: TR commented