You are here

function antispam_get_api_key in AntiSpam 7

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

Obtain API key for the specified service provider.

4 calls to antispam_get_api_key()
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

File

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

Code

function antispam_get_api_key($provider) {
  switch ($provider) {
    case ANTISPAM_AKISMET_SERVICE:
      $api_key = variable_get('antispam_wpapikey', '');
      break;
  }
  return $api_key;
}