You are here

protected function FeedsUcAddressesProcessor::entitySave in Ubercart Addresses 7

Save an address.

File

feeds/FeedsUcAddressesProcessor.inc, line 56
Contains the FeedsUcAddressesProcessor class.

Class

FeedsUcAddressesProcessor
A processor for importing data belonging to an Ubercart Addresses address.

Code

protected function entitySave($address) {
  if ($address
    ->isOwned()) {
    $address
      ->save();
    $address->feeds_item->entity_id = $address
      ->getId();
  }
}