You are here

function _spam_truncate in Spam 5.3

Same name and namespace in other branches
  1. 6 spam.module \_spam_truncate()
1 call to _spam_truncate()
spam_admin_list_feedback in ./spam.module
Spam feedback overview.

File

./spam.module, line 1112

Code

function _spam_truncate($text, $length = 64) {
  if (strlen($text) > $length) {
    $text = substr($text, 0, $length) . '...';
  }
  return $text;
}