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.
By Superry on
Is this possible? I have looked into using the Token plugin and using PHP Code. I installed the Devel module and can see the array of variables available, but I can't get any actual variable data returned from the body using PHP. I have tried several enchantations of PHP 'print render' and print_r.
Thank you.
Comments
I kinda answered my own
I kinda answered my own question...
under /drupal/filter/tips I found a 'hello world' sample that worked!
So I just have to figure things out a bit more and familiarize myself with the functions a bit more. What I'm trying to print are specific fields of content.
This is the answer to my
This is the answer to my question...
Follow up
This is great, I've been wondering if this is possible for a while. Where did you drop this code in?