You are here

function uc_payment_entity_property_info in Ubercart 7.3

Implements hook_entity_property_info().

File

payment/uc_payment/uc_payment.info.inc, line 11
Entity Metadata hooks

Code

function uc_payment_entity_property_info() {
  return array(
    'uc_order' => array(
      'properties' => array(
        'payment_balance' => array(
          'type' => 'decimal',
          'label' => t('Balance'),
          'description' => t('The total amount remaining for the order.'),
          'getter callback' => 'uc_payment_balance',
          'query callback' => 'entity_metadata_table_query',
        ),
      ),
    ),
  );
}