atrblacklist_pattern

Versions
6.1
atrblacklist_pattern($keyword)

Return the blacklist PCRE pattern.

Parameters

$keyword The keyword to match.

Return value

The PCRE pattern.

▾ 2 functions call atrblacklist_pattern()

atrblacklist_result in atr/modules/atrblacklist/includes/atrblacklist.result.inc
Display an overview of blacklisted strings.
atrblacklist_review in atr/modules/atrblacklist/includes/atrblacklist.review.inc
Match strings against the blacklist.

Code

atr/modules/atrblacklist/atrblacklist.module, line 184

<?php
function atrblacklist_pattern($keyword) {
  return '#(^|(?<=[^a-z]))' . preg_quote($keyword) . '(?=([^a-z]|$))#i';
}
?>