I am using Mail Editor to customise mail sent by Subscriptions Mail. I am also using !cckvalue1_field_date as one of the replacement patterns in order to display the date used in Calendar/Date Modules.

The date is being displayed in the emails as:

Saturday, 25 July, 2009 - 09:30 - 14:00

Can someone please tell me how to get rid of the span tags in the emails and just show the date.

Comments

salvis’s picture

Project: Mail Editor » Subscriptions
Version: 6.x-1.x-dev » 6.x-1.0-beta6

Seems related to #339076: HTML entities appear in plain text CCK field. Unfortunately, there was no answer from the CCK people...

Did you mean to write

<span>Saturday, 25 July, 2009 - 09:30 - 14:00</span>

?

IAC, it's not a Mail Editor issue, but a Subscriptions or CCK issue.

scubasmurf’s picture

Yeah, I meant <span class="date-display-single">Saturday, 25 July, 2009 - <span class="date-display-start">09:30</span><span class="date-display-separator"> - </span><span class="date-display-end">14:00</span></span>

Thanks for pointing me in the right direction.

salvis’s picture

Ok, I'll give this another look.

salvis’s picture

Status: Active » Needs review

Ah, sorry, this slipped through the cracks. Please try the following:

Locate the lines

          }
          $formatteds[] = $formatted;

in subscriptions_cck.module and add a line between them, so that it looks like

          }
          $formatted = drupal_html_to_text($formatted);
          $formatteds[] = $formatted;

Does this help?

scubasmurf’s picture

Excellent!

The output format is "Friday, 2 October, 2009 (All day) - Monday, 5 October, 2009 (All day)"

Thank you.

salvis’s picture

Version: 6.x-1.0-beta6 » 6.x-1.0-rc1
Status: Needs review » Reviewed & tested by the community

Great, I'll slip-stream it into the release. Thanks.

salvis’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.