You are here

function pay_method::disable in Pay 7

Disable this payment method.

Overrides pay::disable

1 call to pay_method::disable()
pay_method::delete in includes/handlers/pay_method.inc
Delete this payment method.

File

includes/handlers/pay_method.inc, line 186
The base class for payment activities. All payment method classes should extend this class.

Class

pay_method
@file The base class for payment activities. All payment method classes should extend this class.

Code

function disable() {

  // Call any actions that might want to know about this.
  $this
    ->drupal_invoke('pay_method_delete');

  // Set the status to 0.
  $this->status = 0;
  $this
    ->save();
}