You are here

public function CommerceLicenseRemoteBase::suspend in Commerce License 7

Overrides CommerceLicenseBase::suspend().

Overrides CommerceLicenseBase::suspend

File

includes/plugins/license_type/base.inc, line 500
Abstract and interface plugin implementation.

Class

CommerceLicenseRemoteBase
Remote license base class.

Code

public function suspend($sync = TRUE) {
  if ($sync) {
    $this->wrapper->sync_status = COMMERCE_LICENSE_NEEDS_SYNC;
  }
  $this->wrapper->status = COMMERCE_LICENSE_SUSPENDED;
  $this
    ->save();
}