function _antispam_api_build_query_string in AntiSpam 6
Same name and namespace in other branches
- 7 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 2252
Code
function _antispam_api_build_query_string($array) {
global $base_url;
if (antispam_get_service_provider() == DEFENSIO_SERVICE) {
// DEFENSIO
$string = 'owner-url=' . $base_url . base_path();
}
else {
// AKISMET, TYPEPAD
$string = 'blog=' . $base_url . base_path();
}
foreach ($array as $key => $value) {
$string .= '&' . $key . '=' . urlencode(stripslashes($value));
}
return $string;
}