public function UcAddressesUcZoneFieldHandler::getMappingTargets in Ubercart Addresses 7
Overrides UcAddressesFieldHandler::getMappingTargets().
The zone field has some extra mapping targets.
Overrides UcAddressesFieldHandler::getMappingTargets
File
- handlers/
ubercart.handlers.inc, line 169 - Field handlers for Ubercart core address fields: first_name, last_name, company, etc.
Class
- UcAddressesUcZoneFieldHandler
- Class for the Ubercart zone field.
Code
public function getMappingTargets() {
$targets = parent::getMappingTargets();
// Specify clearer names and descriptions.
$targets['zone:zone_name']['name'] = t('Zone name');
$targets['zone:zone_code']['name'] = t('Zone code');
$targets['zone']['description'] = t('Zone ID as known to Ubercart');
return $targets;
}