function smtp_variable_info in SMTP Authentication Support 7
Same name and namespace in other branches
- 7.2 smtp.variable.inc \smtp_variable_info()
Implements hook_variable_info().
Allows for the SMTP from name to be translated if/when the Variable module is enabled.
@link http://api.drupalhelp.net/api/variable/variable.api.php/function/hook_va...
Parameters
array $options:
File
- ./
smtp.variable.inc, line 29 - Custom integration with the Variable module.
Code
function smtp_variable_info($options) {
$variable['smtp_fromname'] = array(
'title' => t('Email from name (SMTP module)'),
'type' => 'string',
'description' => t('Allow for site emails to be sent from a different name.'),
'group' => 'smtp',
'multidomain' => TRUE,
'localize' => TRUE,
);
return $variable;
}