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.
Hello,
I am trying to include a link to the submitter's profile in the email, but I can't do that with the default tokens.
Is there a way to use variables like $user->uid and $base_path in the webform email message?
Thanks.
Comments
Comment #1
quicksketchYou can use any PHP you like when theming webform e-mails. Are you working in the webform-email.tpl.php file? If so, you can directly access $user->uid, and you can get the base path by using
<?php print base_path(); ?>
.Comment #2
Gabriel R. CreditAttribution: Gabriel R. commentedDo you mean I have to tweak the module code for this?
Comment #3
quicksketchYou can theme the output of e-mails by following the instructions in THEMING.txt. You should never modify the code of any module, otherwise you won't be able to upgrade when new versions come out.
Comment #4
quicksketch