You are here

function email_confirm_default_confirmation_email_author in Email Change Confirmation 7

Determines the default from email address.

Return value

string Default from email address.

2 calls to email_confirm_default_confirmation_email_author()
email_confirm_admin_settings in ./email_confirm.module
Implements hook_settings().
email_confirm_build_mail in ./email_confirm.module
Build and send out the confirmation emails.

File

./email_confirm.module, line 384
The Email Change Confirmation module.

Code

function email_confirm_default_confirmation_email_author() {
  $default_from =& drupal_static(__FUNCTION__);
  if (empty($default_from)) {
    if (module_exists('smtp') && variable_get('smtp_from', '') != '') {
      $default_from = variable_get('smtp_from', ini_get('sendmail_from'));
    }
    else {
      $default_from = variable_get('site_mail', ini_get('sendmail_from'));
    }
  }
  return $default_from;
}