You are here

public function Cleantalk::isAllowUser in Anti Spam by CleanTalk 7.2

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

Function checks whether it is possible to publish the message

Parameters

CleantalkRequest $request:

Return value

type

File

./cleantalk.module, line 624
Main CleanTalk integration module functions.

Class

Cleantalk
Cleantalk class create request

Code

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