File download emails need newlines

DZone - January 21, 2008 - 16:51
Project:Ubercart
Version:5.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The email sent when a user has file downloads available does not have any newlines. This is easily corrected by adding some \n\n to the $messages['uc_file_download_message'] setting in uc_file_uc_message(). I might also suggest that this would be useful as a theme function so that it can be more easily changed.

#1

Shawn Conn - January 25, 2008 - 19:52
Status:active» closed

The value $messages['uc_file_download_message'] already contains \n\n to insert line breaks. Perhaps the select input format on your notification settings aren't set to interpret new lines as <br/> in your installation? As far as theming goes, users can change the input format and text on the notification settings page (admin/store/settings/notify/edit/file) and theme the file downloads token with theme_uc_file_downloads_token, thus no more theme functions are necessary

#2

DZone - February 1, 2008 - 15:15

Great, thanks for the feedback. I didn't know about those settings :)

 
 

Drupal is a registered trademark of Dries Buytaert.