1.20.x search.module _search_index_truncate(&$text)

Helper function for array_walk in search_index_split.

File

modules/search/search.module, line 589
Enables site-wide keyword searching.

Code

function _search_index_truncate(&$text) {
  if (is_numeric($text)) {
    $text = ltrim($text, '0');
  }
  $text = truncate_utf8($text, 50);
}