HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /var/www/html/coreplad/sites/all/modules/smtp/smtp.variable.inc
<?php
/**
 * @file
 * Custom integration with the Variable module.
 */

/**
 * Implements hook_variable_group_info().
 */
function smtp_variable_group_info() {
  $groups['smtp'] = array(
    'title' => t('SMTP Authentication Support'),
    'access' => 'administer smtp module',
    'description' => t('Configure SMTP server for site emails to be sent from different names.'),
  );

  return $groups;
}

/**
 * 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_variable_info/7
 * @param array $options
 */
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;
}