You are here

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

Function adds to the post comment Cleantalk.ru

Parameters

$message:

$comment:

Return value

string

File

src/Cleantalk.php, line 518

Class

Cleantalk
Cleantalk class create request

Namespace

Drupal\cleantalk

Code

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