function commerce_gc_transaction_load_multiple in Commerce GC 7
Load multiple giftcard transaction entities based on certain conditions.
Parameters
$commerce_coupon_ids: An array of coupon IDs.
$conditions: An array of conditions to match against the {commerce_coupon} table.
$reset: A boolean indicating that the internal cache should be reset.
Return value
An array of coupon objects, indexed by coupon id.
See also
2 calls to commerce_gc_transaction_load_multiple()
- commerce_gc_transaction_change_status in ./
commerce_gc.module - Given a set of transaction ids, set any that match a certain status to a target status.
- commerce_gc_transaction_load in ./
commerce_gc.module - Load a giftcard transaction entity
File
- ./
commerce_gc.module, line 707 - Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.
Code
function commerce_gc_transaction_load_multiple($transaction_ids = array(), $conditions = array(), $reset = FALSE) {
if (empty($transaction_ids) && empty($conditions)) {
return array();
}
return entity_load('commerce_gc_transaction', $transaction_ids, $conditions, $reset);
}