You are here

public function Cleantalk::addCleantalkComment in Anti Spam by CleanTalk 8.3

Function adds to the post comment Cleantalk.org

Parameters

$message:

$comment:

Return value

string

File

src/lib/Cleantalk/Antispam/Cleantalk.php, line 580

Class

Cleantalk
Cleantalk class create request

Namespace

Drupal\cleantalk\lib\Cleantalk\Antispam

Code

public function addCleantalkComment($message, $comment) {
  $comment = preg_match('/\\*\\*\\*(.+)\\*\\*\\*/', $comment, $matches) ? $comment : '*** ' . $comment . ' ***';
  return $message . "\n\n" . $comment;
}