Timeline for How to use presave hook to save a field value as node title?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2017 at 20:34 | comment | added | Adrian Cid Almaguer | @JamieHollern You're right, the code had problems, now I edit with the correct answer. Thanks for your comment. | |
Nov 26, 2017 at 20:33 | history | edited | Adrian Cid Almaguer | CC BY-SA 3.0 |
deleted 241 characters in body
|
Nov 25, 2017 at 9:56 | comment | added | Jamie Hollern | Also, calling $entity->save() in a presave hook causes infinite recursion. This isn't a correct answer. | |
Nov 25, 2017 at 9:23 | comment | added | Jamie Hollern |
Why would you load the node when it is being passed into the hook as the $entity object?
|
|
Feb 8, 2017 at 3:12 | vote | accept | user3365957 | ||
Feb 6, 2017 at 20:20 | history | answered | Adrian Cid Almaguer | CC BY-SA 3.0 |