You are here

function antispam_get_provider_name in AntiSpam 6

Same name and namespace in other branches
  1. 7 antispam.module \antispam_get_provider_name()

Obtain service provider name

1 call to antispam_get_provider_name()
antispam_callback_queue in ./antispam.admin.inc
Menu callback; Moderation queue.

File

./antispam.module, line 202

Code

function antispam_get_provider_name($provider, $with_link = FALSE) {
  switch ($provider) {
    case AKISMET_SERVICE:
      return $with_link ? t('<a href="http://akismet.com">Akismet</a>') : t('Akismet');
    case TYPEPAD_SERVICE:
      return $with_link ? t('<a href="http://antispam.typepad.com">TypePad AntiSpam</a>') : t('TypePad AntiSpam');
    case DEFENSIO_SERVICE:
      return $with_link ? t('<a href="http://defensio.com">Defensio</a>') : t('Defensio');
    default:
      return '';
  }
}