You are here

function _mailsystem_wrap_mail_line in Mail System 7.3

Same name and namespace in other branches
  1. 8.2 html_to_text.inc \_mailsystem_wrap_mail_line()
  2. 6.2 html_to_text.inc \_mailsystem_wrap_mail_line()
  3. 7.2 html_to_text.inc \_mailsystem_wrap_mail_line()

Helper function for array_walk in drupal_wrap_mail().

Inserts $values['break'] sequences to break up $line into parts of no more than $values['wrap'] characters. Only breaks at space characters, unless $values['hard'] is TRUE.

1 string reference to '_mailsystem_wrap_mail_line'
mailsystem_wrap_mail in ./html_to_text.inc
Perform format=flowed soft wrapping for mail (RFC 3676).

File

./html_to_text.inc, line 702
Copy of drupal_html_to_text improvements from issue #299138.

Code

function _mailsystem_wrap_mail_line(&$line, $key, $values) {
  $line = wordwrap($line, $values['wrap'], $values['break'], $values['hard']);
}