You are here

function profanity_rules_match_lists in Profanity 7

Run the lists against the text.

File

./profanity.rules.inc, line 33
Rules {profanity} file.

Code

function profanity_rules_match_lists($lists, $text) {
  $found = FALSE;
  foreach ($lists as $list_name) {
    $found = profanity_list_execute($list_name, $text, FALSE);
    if ($found) {
      break;
    }
  }
  return $found;
}