You are here

function _search_excerpt_replace in Drupal 4

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

Helper function for array_walk in search_except.

1 string reference to '_search_excerpt_replace'
search_excerpt in modules/search.module
Returns snippets from a piece of text, with certain keywords highlighted. Used for formatting search results.

File

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

Code

function _search_excerpt_replace(&$text) {
  $text = preg_quote($text, '/');
}