You are here

function hook_payment_line_item_info_alter in Payment 7

Alters line item types.

Parameters

array $line_items_info: An array with PaymentLineItemInfo objects, keyed by PaymentLineItemInfo::name.

1 invocation of hook_payment_line_item_info_alter()
payment_line_items_info in ./payment.module
Returns information about all line item types.

File

./payment.api.php, line 104
Hook documentation.

Code

function hook_payment_line_item_info_alter(array &$line_items_info) {

  // Set a callback for a line item.
  $line_items_info['foo_fee_credit_card']['callback'] = 'foo_payment_line_item_get';
}