You are here

public function ProfanityPregCallback::execute in Profanity 7

File

./profanity.module, line 596
Main {profanity} file.

Class

ProfanityPregCallback

Code

public function execute($text) {
  return preg_replace_callback("/\\b(" . $this->wordlist . ")\\b" . $this->modifiers, array(
    $this,
    'match_replace',
  ), $text, -1);
}