You are here

function uc_addresses_entity_info in Ubercart Addresses 7

Implements hook_entity_info().

File

./uc_addresses.module, line 511
Adds user profile address support to Ubercart.

Code

function uc_addresses_entity_info() {
  $return = array(
    'uc_addresses' => array(
      'label' => t('Ubercart Addresses address'),
      'entity class' => 'UcAddressesAddress',
      'controller class' => 'UcAddressesEntityController',
      'base table' => 'uc_addresses',
      'fieldable' => FALSE,
      'entity keys' => array(
        'id' => 'aid',
      ),
      'label callback' => 'entity_class_label',
      'uri callback' => 'entity_class_uri',
      'module' => 'uc_addresses',
      'access callback' => 'uc_addresses_entity_access',
    ),
  );
  return $return;
}