public function ProfanityPregCallback::match_replace in Profanity 7
File
- ./
profanity.module, line 600 - Main {profanity} file.
Class
Code
public function match_replace($matches) {
$this->count = $this->count + 1;
return str_repeat($this->character, strlen(utf8_decode($matches[0])));
}