function antispam_get_api_host in AntiSpam 6
Same name and namespace in other branches
- 7 antispam.module \antispam_get_api_host()
Obtain API HOST name for the specified service provider
5 calls to antispam_get_api_host()
- antispam_api_cmd_comment_check in ./
antispam.module - AntiSpam API: Comment Check
- antispam_api_cmd_spam_check in ./
antispam.module - AntiSpam API: Generic Data 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
- antispam_api_cmd_verify_key in ./
antispam.module - AntiSpam API: Key Verification
File
- ./
antispam.module, line 218
Code
function antispam_get_api_host($provider) {
switch ($provider) {
case AKISMET_SERVICE:
$api_host = AKISMET_API_HOST;
break;
case TYPEPAD_SERVICE:
$api_host = TYPEPAD_API_HOST;
break;
case DEFENSIO_SERVICE:
$api_host = DEFENSIO_API_HOST;
break;
}
return $api_host;
}