class UbercartMailSystem in Ubercart 7.3
Modifies the Drupal mail system to send HTML emails.
Hierarchy
- class \DefaultMailSystem implements MailSystemInterface
- class \UbercartMailSystem
Expanded class hierarchy of UbercartMailSystem
2 string references to 'UbercartMailSystem'
- uc_store_install in uc_store/
uc_store.install - Implements hook_install().
- uc_store_update_7004 in uc_store/
uc_store.install - Installs HTML Mail System for Ubercart.
File
- uc_store/
classes/ mail.inc, line 11 - Utility class definition.
View source
class UbercartMailSystem extends DefaultMailSystem {
/**
* Concatenates and wraps the e-mail body for plain-text mails.
*
* @param $message
* A message array, as described in hook_mail_alter().
*
* @return
* The formatted $message.
*/
public function format(array $message) {
$message['body'] = implode("\n\n", $message['body']);
return $message;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultMailSystem:: |
public | function |
Send an e-mail message, using Drupal variables and default settings. Overrides MailSystemInterface:: |
1 |
DefaultMailSystem:: |
protected static | function | Disallows potentially unsafe shell characters. | |
UbercartMailSystem:: |
public | function |
Concatenates and wraps the e-mail body for plain-text mails. Overrides DefaultMailSystem:: |