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

quicksketch’s picture

You 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(); ?>.

Gabriel R.’s picture

Do you mean I have to tweak the module code for this?

quicksketch’s picture

You 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.

quicksketch’s picture

Status: Active » Closed (fixed)