You are here

public function Cleantalk::isAllowMessage in Anti Spam by CleanTalk 7.5

Same name and namespace in other branches
  1. 7 cleantalk.module \Cleantalk::isAllowMessage()
  2. 7.2 cleantalk.module \Cleantalk::isAllowMessage()
  3. 7.4 src/Cleantalk.php \Cleantalk::isAllowMessage()

Function checks whether it is possible to publish the message

Parameters

CleantalkRequest $request:

Return value

type

File

src/Cleantalk.php, line 116

Class

Cleantalk
Cleantalk Base class

Code

public function isAllowMessage(CleantalkRequest $request) {
  $request = $this
    ->filterRequest($request);
  $msg = $this
    ->createMsg('check_message', $request);
  return $this
    ->httpRequest($msg);
}