function uc_store_email in Ubercart 8.4
Same name and namespace in other branches
- 6.2 uc_store/uc_store.module \uc_store_email()
- 7.3 uc_store/uc_store.module \uc_store_email()
Returns the store e-mail address if set, otherwise the site email address.
12 calls to uc_store_email()
- AddressForm::buildForm in shipping/
uc_fulfillment/ src/ Form/ AddressForm.php - Form constructor.
- StockTest::testStockThresholdMail in uc_stock/
tests/ src/ Functional/ StockTest.php - Tests sending out mail when stock drops below threshold.
- StoreSettingsForm::buildForm in uc_store/
src/ Form/ StoreSettingsForm.php - Form constructor.
- uc_cart_default_rules_configuration in uc_cart/
uc_cart.rules_defaults.inc - Implements hook_default_rules_configuration().
- uc_cart_uc_checkout_complete in uc_cart/
uc_cart.module - Implements hook_uc_checkout_complete().
File
- uc_store/
uc_store.module, line 613 - Contains global Ubercart functions and store administration functionality.
Code
function uc_store_email() {
$email_from = \Drupal::config('uc_store.settings')
->get('mail');
if (empty($email_from)) {
$email_from = \Drupal::config('system.site')
->get('mail');
}
if (empty($email_from)) {
$email_from = ini_get('sendmail_from');
}
return $email_from;
}