You are here

function hook_uc_addresses_fields_alter in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 uc_addresses.api.php \hook_uc_addresses_fields_alter()

When all modules have registered their fields, you have a chance to alter the definitions with this hook.

Parameters

array $fields: A list of field definitions registered through hook_uc_addresses_fields().

Return value

void

1 invocation of hook_uc_addresses_fields_alter()
uc_addresses_get_address_fields in ./uc_addresses.module
Returns all fields registered by hook_uc_addresses_fields().

File

./uc_addresses.api.php, line 124
These hooks are invoked by the Ubercart Addresses module. @todo more documentation needed for hook_uc_addresses_field_handlers(). @todo Document the rest of the API.

Code

function hook_uc_addresses_fields_alter(&$fields) {

  // Change the handler of my custom field.
  $fields['myfield']['handler'] = 'MyOtherCustomFieldHandler';
}