You are here

function _cleantalk_ct_result in Anti Spam by CleanTalk 7.2

Same name and namespace in other branches
  1. 8 cleantalk.module \_cleantalk_ct_result()
  2. 7 cleantalk.module \_cleantalk_ct_result()

Cleantalk inner function - stores spam checking result.

6 calls to _cleantalk_ct_result()
cleantalk_comment_insert in ./cleantalk.module
Implements hook_comment_insert().
cleantalk_comment_presave in ./cleantalk.module
Implements hook_comment_presave().
cleantalk_node_presave in ./cleantalk.module
cleantalk_user_insert in ./cleantalk.module
Implements hook_user_insert().
cleantalk_user_presave in ./cleantalk.module
Implements hook_user_presave().

... See full list

File

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

Code

function _cleantalk_ct_result($cmd = 'get', $id = '', $comment = '') {
  static $request_id = '';
  static $result_comment = '';
  if ($cmd == 'set') {
    $request_id = $id;
    $result_comment = $comment;
  }
  else {
    return array(
      'ct_request_id' => $request_id,
      'ct_result_comment' => $result_comment,
    );
  }
}