You are here

function uc_addresses_get_address_field_handler_instances in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 uc_addresses.module \uc_addresses_get_address_field_handler_instances()

Returns all handler instances of fields registered by hook_uc_addresses_fields().

Parameters

UcAddressesSchemaAddress $address: An address object.

string $context: The context where the fields are used for.

Return value

array A list of handler instances for all available address fields.

8 calls to uc_addresses_get_address_field_handler_instances()
FeedsUcAddressesProcessor::getMappingTargets in feeds/FeedsUcAddressesProcessor.inc
Return available mapping targets.
UcAddressesCartCheckoutTestCase::checkCheckoutAddressFields in tests/uc_addresses.checkout.test
Checks values on checkout form for given address and type.
UcAddressesTestCase::doAddressValuesDisplayedTests in tests/UcAddressesTestCase.test
Test if these address values are displayed on the page.
UcAddressesTestCase::getEditAddressValues in tests/UcAddressesTestCase.test
Generates an array of values to post into an address form
uc_addresses_preprocess_address in ./uc_addresses.module
Prepare address fields for display.

... See full list

File

./uc_addresses.module, line 1400
Adds user profile address support to Ubercart.

Code

function uc_addresses_get_address_field_handler_instances(UcAddressesSchemaAddress $address, $context = 'default') {
  $handlers = array();
  $fields_data = uc_addresses_get_address_fields();
  foreach ($fields_data as $fieldname => $fielddata) {
    $handlers[$fieldname] = uc_addresses_get_address_field_handler($address, $fieldname, $context);
  }
  return $handlers;
}