You are here

class UbercartMailSystem in Ubercart 7.3

Modifies the Drupal mail system to send HTML emails.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
DefaultMailSystem::mail public function Send an e-mail message, using Drupal variables and default settings. Overrides MailSystemInterface::mail 1
DefaultMailSystem::_isShellSafe protected static function Disallows potentially unsafe shell characters.
UbercartMailSystem::format public function Concatenates and wraps the e-mail body for plain-text mails. Overrides DefaultMailSystem::format