diff --git a/payment/uc_payment/uc_payment.info.inc b/payment/uc_payment/uc_payment.info.inc index 78126b3..661e856 100644 --- a/payment/uc_payment/uc_payment.info.inc +++ b/payment/uc_payment/uc_payment.info.inc @@ -6,6 +6,25 @@ */ /** + * Implements hook_entity_property_info(). + */ +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', + ), + ), + ), + ); +} + +/** * Implements hook_entity_property_info_alter(). */ function uc_payment_entity_property_info_alter(&$info) {