You are here

function antispam_get_api_host in AntiSpam 7

Same name and namespace in other branches
  1. 6 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 175
Primary hook implementations for the Antispam module.

Code

function antispam_get_api_host($provider) {
  switch ($provider) {
    case ANTISPAM_AKISMET_SERVICE:
      $api_host = ANTISPAM_AKISMET_API_HOST;
      break;
  }
  return $api_host;
}