You are here

public function UcAddressesEntityController::invokeLoad in Ubercart Addresses 7

Invokes load hook.

This is a bit of a hack, because this makes the protected method attachLoad() public by providing this wrapper method. As this method is only called by the UcAddressesAddressBook class, which takes control about address loading, we should accept that the hack is needed.

Please don't call this method in other places.

Parameters

array $entities: An array of UcAddressesAddress instances.

Return value

void

File

class/uc_addresses.entity.inc, line 53
Entity integration code.

Class

UcAddressesEntityController
Ubercart Addresses entity controller class.

Code

public function invokeLoad($entities) {
  if (!empty($entities)) {
    $this
      ->attachLoad($entities);
  }
}