function payment_rules_action_payment_line_item_delete in Payment 7
Implements Rules action callback: delete a line item.
Parameters
Payment $payment:
string $name: The machine name of the line item to delete.
File
- ./
payment.rules.inc, line 451 - Rules integration.
Code
function payment_rules_action_payment_line_item_delete(Payment $payment, $name) {
unset($payment->line_items[$name]);
}