You are here

function uc_address_field_required in Ubercart 7.3

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

Returns TRUE if the address field is required.

1 call to uc_address_field_required()
uc_store_process_address_field in uc_store/uc_store.module
Element process hook for address fields.

File

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

Code

function uc_address_field_required($field) {
  $fields = variable_get('uc_address_fields_required', drupal_map_assoc(array(
    'first_name',
    'last_name',
    'street1',
    'city',
    'zone',
    'postal_code',
    'country',
  )));
  return isset($fields[$field]);
}