Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Implement the 1st amendment #130

Open
wants to merge 1 commit into
base: 7.x-3.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions modules/custom/petitions_profanity/petitions_profanity.module
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@ function petitions_profanity_mail_alter(&$message) {
* TRUE if any filter matches any string, FALSE otherwise.
*/
function petitions_profanity_is_profane($string, $terms = array()) {
// If no terms have been passed to this function, check the
// petitions_profanity_profane_terms function.
if (!$terms) {
$terms = petitions_profanity_profane_terms();
}
foreach ($terms as $term) {
$term = str_replace(',', '', $term);
if (stripos($string, $term) !== FALSE) {
return TRUE;
}
}
return FALSE;
}

Expand Down