You are here

function pay_form::set_valid_actions in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_form.inc \pay_form::set_valid_actions()

Modify the list of payment actions that are valid for a given transaction.

Parameters

$pay_transaction: An existing transaction that is using this pay_form.

$actions: An array of default actions, passed by reference. Modify or augment this as needed.

File

includes/handlers/pay_form.inc, line 52
The base class for payment activities. All payment form classes should extend this.

Class

pay_form
@file The base class for payment activities. All payment form classes should extend this.

Code

function set_valid_actions($pay_transaction, &$actions) {
  foreach ($this
    ->pay_methods() as $pay_method) {
    $pay_method
      ->set_valid_actions($this, $actions);
  }
}