function uc_store_email in Ubercart 6.2
Same name and namespace in other branches
- 8.4 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.
11 calls to uc_store_email()
- uc_cart_ca_predicate in uc_cart/
uc_cart.ca.inc - Implements hook_ca_predicate().
- 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 for use as a "From" address when sending e-mail to customers. The return string will look something like: Store Name <store@example.com>
- uc_store_store_settings_form in uc_store/
uc_store.admin.inc - Displays the form for store settings.
2 string references to 'uc_store_email'
- uc_store_store_settings_form_validate in uc_store/
uc_store.admin.inc - Validation handler for uc_store_store_settings_form().
- uc_store_store_status in uc_store/
uc_store.admin.inc - Implements hook_store_status().
File
- uc_store/
uc_store.module, line 1735 - 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;
}