From bacea7e5f7b46c2d9999038d5a58b1bbc6c634cd Mon Sep 17 00:00:00 2001 From: ClueOrc Date: Fri, 17 Mar 2017 23:26:09 -0400 Subject: [PATCH] Implement the 1st amendment --- .../petitions_profanity/petitions_profanity.module | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/custom/petitions_profanity/petitions_profanity.module b/modules/custom/petitions_profanity/petitions_profanity.module index 61b3ae98e..121cfb7eb 100644 --- a/modules/custom/petitions_profanity/petitions_profanity.module +++ b/modules/custom/petitions_profanity/petitions_profanity.module @@ -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; }