You are here

function uc_store_email in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_store/uc_store.module \uc_store_email()
  2. 6.2 uc_store/uc_store.module \uc_store_email()

Returns the store e-mail address if set, otherwise the site email address.

11 calls to uc_store_email()
uc_cart_default_rules_configuration in uc_cart/uc_cart.rules_defaults.inc
Implements hook_default_rules_configuration().
uc_shipping_address_form in shipping/uc_shipping/uc_shipping.module
Helper function for addresses in forms.
uc_stock_settings_form in uc_stock/uc_stock.admin.inc
Form builder for stock settings form.
uc_store_email_from in uc_store/uc_store.module
Returns store name and e-mail address in an RFC 2822 compliant string.
uc_store_settings_form in uc_store/uc_store.admin.inc
Form builder for store settings.

... See full list

2 string references to 'uc_store_email'
uc_store_settings_form_validate in uc_store/uc_store.admin.inc
Validates store e-mail address for uc_store_settings_form().
uc_store_uc_store_status in uc_store/uc_store.admin.inc
Implements hook_uc_store_status().

File

uc_store/uc_store.module, line 1650
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_email() {
  $email_from = variable_get('uc_store_email', '');
  if (empty($email_from)) {
    $email_from = variable_get('site_mail', ini_get('sendmail_from'));
  }
  return $email_from;
}