smtp.variable.inc 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * @file
  4. * Custom integration with the Variable module.
  5. */
  6. /**
  7. * Implements hook_variable_group_info().
  8. */
  9. function smtp_variable_group_info() {
  10. $groups['smtp'] = array(
  11. 'title' => t('SMTP Authentication Support'),
  12. 'access' => 'administer smtp module',
  13. 'description' => t('Configure SMTP server for site emails to be sent from different names.'),
  14. );
  15. return $groups;
  16. }
  17. /**
  18. * Implements hook_variable_info().
  19. *
  20. * Allows for the SMTP from name to be translated if/when the Variable module is
  21. * enabled.
  22. *
  23. * @link http://api.drupalhelp.net/api/variable/variable.api.php/function/hook_variable_info/7
  24. * @param array $options
  25. */
  26. function smtp_variable_info($options) {
  27. $variable['smtp_fromname'] = array (
  28. 'title' => t('Email from name (SMTP module)'),
  29. 'type' => 'string',
  30. 'description' => t('Allow for site emails to be sent from a different name.'),
  31. 'group' => 'smtp',
  32. 'multidomain' => TRUE,
  33. 'localize' => TRUE,
  34. );
  35. return $variable;
  36. }