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.
What's the best way to handle/set the variable for user_mail_text?
For example, the profiler builder output is:
variables[user_mail_cancel_confirm_body] = [user:name],
A request to cancel your account has been made at [site:name].
You may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:
[user:cancel-url]
NOTE: The cancellation of your account is not reversible.
This link expires in one day and nothing will happen if it is not used.
-- [site:name]
Only [user:name] is inputted into the database.
Comment | File | Size | Author |
---|---|---|---|
#3 | profiler_builder-1479038-1-multiline-variables.patch | 1.75 KB | Robin Millette |
#1 | profiler_builder-1479038-multiline-variables.patch | 1.91 KB | Robin Millette |
Comments
Comment #1
Robin Millette CreditAttribution: Robin Millette commentedI am using var_export($var, true) in this patch to quote all values. I could special case it only for multi-line variables, but it's not necessary I think.
See the API function drupal_parse_info_format() for the accepted multi-line syntax.
Comment #2
btopro CreditAttribution: btopro commented@Robin Millette can you reroll this patch now that the ignore list function has your other commit in it to include a drupal_alter. This sounds like a good method for fixing oversight in building initially.
Comment #3
Robin Millette CreditAttribution: Robin Millette commentedOups, I don't know how those couple of lines got in at the end. Here's a new patch.
Comment #4
Robin Millette CreditAttribution: Robin Millette commentedCommit 32097d6 on 7.x-1.x, fixed.