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.
It would be useful to have the user's response fields in the mailer replacement strings.
Comment | File | Size | Author |
---|---|---|---|
#11 | rsvp-n1035746-11.patch | 6.97 KB | DamienMcKenna |
#10 | rsvp-n1035746-10.patch | 6.97 KB | DamienMcKenna |
#9 | rsvp-n1035746-9.patch | 6.76 KB | DamienMcKenna |
#8 | rsvp-n1035746-8.patch | 6.86 KB | DamienMcKenna |
#6 | rsvp-n1035746-7.patch | 5.93 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaPatch enclosed that adds @guest_comment, @guest_response and @guest_totalguests.
Comment #2
DamienMcKennaComment #3
DamienMcKennaSmall update that wraps the guest's comment in check_plain().
Comment #4
DamienMcKennaA small improvement, now the @guest_response token returns the text_yes, text_no, text_maybe fields (or 'none') while the new @guest_response_raw field is the raw yes/no/maybe/none. Also, @event_datetime displays the event date using the correct formatting function (event_format_date or date_format_date).
Comment #5
DamienMcKennaHere's another update that adds a whole bunch of fields for the event date & time: '@event_date_day', '@event_date_month', '@event_date_year', '@event_date_year_2', '@event_date_year_4', '@event_time_12', '@event_time_24', '@event_time_hours', '@event_time_hours_12', '@event_time_hours_24', '@event_time_minutes', '@event_time_peroid'.
Comment #6
DamienMcKennaMissed an IF case.
Comment #7
DamienMcKennaA full list of the date & time fields that were added:
These are compiled by either date_format_date() or event_format_date(), so should adhere to locales.
Comment #8
DamienMcKennaUpdated to add the old response fields from #1038730: Data inconsistency in email messages, so you can show the maintainer what the response changed from.
Comment #9
DamienMcKennaYet Another Update. This fixes the mis-named "period" field, correctly parses the stored datetime to identify the correct time.
Comment #10
DamienMcKennaThis patch fixes the date fields, which were being improperly parsed. It also changes the "friendly" message for "none" responses to t('No response'), similar to what is used in rsvp.module.
Comment #11
DamienMcKennaAnother small update that fixes the @event_time_minutes field.
Comment #12
DamienMcKennaI just realized something - the Old Response fields are only present for the moderator notification message, they are not present for the guest notification message. Might need some more work.
Comment #13
sdsheridansubscribe
Comment #14
Ihsees CreditAttribution: Ihsees commentedHey DamienMcKenna,
great update on the RSVP Module! Thanks a lot! I've been playing around with it for a week or two now, and I've noticed a few things. I've also been trying to fix them, but I simply lack the knowledge to do so. Maybe you could tell me where I need to look.
1) the time is displayed the way it's stored in the database (UTC) and doesn't adapt to the timezones. I'm sure there is a drupal-function out there that does exactly that, but I can't find it.
2) @node_body and @node_title don't work. Also, they only appear in the code once as in:
$replacements['@node_body'] = '';
$replacements['@node_title'] = '';
it would be awesome if one could implement a function that could display the actual node information within the e-mail.
thanks in advance for any help that you could provide
-Ihsees
Comment #15
Ihsees CreditAttribution: Ihsees commentedugly workaround for (1). I'd appreciate it, if someone could make it somewhat prettier.
same goes for the second function (untested)