You are here

function _antispam_api_build_query_string in AntiSpam 7

Same name and namespace in other branches
  1. 6 antispam.module \_antispam_api_build_query_string()

Build query string for AntiSpam request.

Parameters

array:

Return value

string

3 calls to _antispam_api_build_query_string()
antispam_api_cmd_comment_check in ./antispam.module
AntiSpam API: Comment Check.
antispam_api_cmd_submit_ham in ./antispam.module
AntiSpam API: Submit Ham
antispam_api_cmd_submit_spam in ./antispam.module
AntiSpam API: Submit Spam

File

./antispam.module, line 2338
Primary hook implementations for the Antispam module.

Code

function _antispam_api_build_query_string($array) {
  global $base_url;
  $string = 'blog=' . $base_url . base_path();
  foreach ($array as $key => $value) {
    $string .= '&' . $key . '=' . urlencode(stripslashes($value));
  }
  return $string;
}