function antispam_get_api_key in AntiSpam 6
Same name and namespace in other branches
- 7 antispam.module \antispam_get_api_key()
Obtain API key for the specified service provider
5 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
- _antispam_settings_form in ./
antispam.admin.inc - Build the antispam settings form.
File
- ./
antispam.module, line 236
Code
function antispam_get_api_key($provider) {
switch ($provider) {
case AKISMET_SERVICE:
$api_key = variable_get('antispam_wpapikey', '');
break;
case TYPEPAD_SERVICE:
$api_key = variable_get('antispam_tpapikey', '');
break;
case DEFENSIO_SERVICE:
$api_key = variable_get('antispam_deapikey', '');
break;
}
return $api_key;
}