function _drupal_wrap_mail_line
_drupal_wrap_mail_line(&$line, $key, $values)
Wraps words on a single line.
Callback for array_walk() winthin drupal_wrap_mail().
File
- includes/mail.inc, line 565
- API functions for processing and sending e-mail.
Code
function _drupal_wrap_mail_line(&$line, $key, $values) { // Use soft-breaks only for purely quoted or unindented text. $line = wordwrap($line, 77 - $values['length'], $values['soft'] ? " \n" : "\n"); // Break really long words at the maximum width allowed. $line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n" : "\n", TRUE); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!mail.inc/function/_drupal_wrap_mail_line/7.x