_search_index_truncate

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 8 _search_index_truncate(&$text)

Helper function for array_walk in search_index_split.

Code

modules/search/search.module, line 525

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