You are here

function smtp_provider_variable_get in SMTP Authentication Support 7.2

Get the variable value of the enabled provider

Parameters

string $name: The name of the variable to return.

$default: The default value to use if this variable has never been set.

Return value

The value of the variable. Unserialization is taken care of as necessary.

2 calls to smtp_provider_variable_get()
SmtpMailSystem::format in ./smtp.mail.inc
Concatenate and wrap the e-mail body for either plain-text or HTML emails.
SmtpMailSystem::mailWithoutQueue in ./smtp.mail.inc

File

./smtp.module, line 223
Enables Drupal to send e-mail directly to an SMTP server.

Code

function smtp_provider_variable_get($name, $default = NULL) {
  $providers = variable_get('smtp_providers', array());
  $current_provider = smtp_current_provider();
  return isset($providers[$current_provider][$name]) ? $providers[$current_provider][$name] : $default;
}