You are here

function payment_line_items_info in Payment 7

Returns information about all line item types.

Return value

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

See also

hook_payment_line_item_type_info()

3 calls to payment_line_items_info()
payment_line_item_info in ./payment.module
Returns information about a specific line item type.
payment_rules_options_list_payment_line_item_name in ./payment.rules.inc
Implements Rules options list callback for payment_rules_action_payment_line_item_set_calculated().
payment_token_info in ./payment.tokens.inc
Implements hook_token_info().

File

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

Code

function payment_line_items_info() {
  $line_items_info =& drupal_static(__FUNCTION__);
  if (is_null($line_items_info)) {
    $line_items_info = array();
    foreach (module_invoke_all('payment_line_item_info') as $line_item_info) {
      $line_items_info[$line_item_info->name] = $line_item_info;
    }
    drupal_alter('payment_line_item_info', $line_items_info);
  }
  return $line_items_info;
}