You are here

function payment_line_item_info in Payment 7

Returns information about a specific line item type.

Parameters

string $name: The line item type's machine name.

Return value

mixed A PaymentLineItemInfo object or FALSE if the requested info could not be found.

1 call to payment_line_item_info()
Payment::getLineItems in ./payment.classes.inc
Get line items.

File

./payment.module, line 758
Hook implementations and shared functions.

Code

function payment_line_item_info($name) {
  $line_items_info = payment_line_items_info();
  return isset($line_items_info[$name]) ? $line_items_info[$name] : FALSE;
}