function hook_uc_addresses_fields_alter in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 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 112 - 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';
}