You are here

function _search_index_truncate in Drupal 4

Same name and namespace in other branches
  1. 8 core/modules/search/search.module \_search_index_truncate()
  2. 5 modules/search/search.module \_search_index_truncate()
  3. 6 modules/search/search.module \_search_index_truncate()
  4. 7 modules/search/search.module \_search_index_truncate()

Helper function for array_walk in search_index_split.

1 string reference to '_search_index_truncate'
search_index_split in modules/search.module
Splits a string into tokens for indexing.

File

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

Code

function _search_index_truncate(&$text) {
  $text = truncate_utf8($text, 50);
}