Skip to content
Snippets Groups Projects
Commit 674df40a authored by Angie Byron's avatar Angie Byron
Browse files

#1007486 by mlncn: Fixed Documentation problem with truncate_utf8: refers to...

#1007486 by mlncn: Fixed Documentation problem with truncate_utf8: refers to max_return_length instead of max_length
parent ef244365
No related branches found
No related tags found
No related merge requests found
......@@ -288,12 +288,12 @@ function drupal_truncate_bytes($string, $len) {
* If TRUE, attempt to truncate on a word boundary. Word boundaries are
* spaces, punctuation, and Unicode characters used as word boundaries in
* non-Latin languages; see PREG_CLASS_UNICODE_WORD_BOUNDARY for more
* information. If a word boundary cannot be found that would make the length
* information. If a word boundary cannot be found that would make the length
* of the returned string fall within length guidelines (see parameters
* $max_return_length and $min_wordsafe_length), word boundaries are ignored.
* $max_length and $min_wordsafe_length), word boundaries are ignored.
* @param $add_ellipsis
* If TRUE, add t('...') to the end of the truncated string (defaults to
* FALSE). The string length will still fall within $max_return_length.
* FALSE). The string length will still fall within $max_length.
* @param $min_wordsafe_length
* If $wordsafe is TRUE, the minimum acceptable length for truncation (before
* adding an ellipsis, if $add_ellipsis is TRUE). Has no effect if $wordsafe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment