You are here

function uc_address_field_enabled in Ubercart 8.4

Same name and namespace in other branches
  1. 5 uc_store/uc_store.module \uc_address_field_enabled()
  2. 6.2 uc_store/uc_store.module \uc_address_field_enabled()
  3. 7.3 uc_store/uc_store.module \uc_address_field_enabled()

Returns TRUE if the address field is enabled.

2 calls to uc_address_field_enabled()
AddressPaneBase::review in uc_cart/src/Plugin/Ubercart/CheckoutPane/AddressPaneBase.php
Returns the review contents of a checkout pane.
AddressPaneBase::submitForm in uc_order/src/Plugin/Ubercart/OrderPane/AddressPaneBase.php
Form submission handler.

File

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

Code

function uc_address_field_enabled($field = NULL) {
  return (bool) \Drupal::config('uc_store.settings')
    ->get("address_fields.{$field}.status");
}