You are here

function payment_rules_options_list_payment_line_item_name in Payment 7

Implements Rules options list callback for payment_rules_action_payment_line_item_set_calculated().

File

./payment.rules.inc, line 435
Rules integration.

Code

function payment_rules_options_list_payment_line_item_name() {
  $options = array();
  foreach (payment_line_items_info() as $line_item_info) {
    $options[$line_item_info->name] = $line_item_info->title;
  }
  return $options;
}