function _spam_truncate in Spam 6
Same name and namespace in other branches
- 5.3 spam.module \_spam_truncate()
1 call to _spam_truncate()
- spam_admin_list_feedback in ./
spam.module - Spam feedback overview.
File
- ./
spam.module, line 1134 - Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.
Code
function _spam_truncate($text, $length = 64) {
if (drupal_strlen($text) > $length) {
$text = drupal_substr($text, 0, $length) . '...';
}
return $text;
}