public function CommerceLicenseRemoteBase::revoke in Commerce License 7
Overrides CommerceLicenseBase::revoke().
Overrides CommerceLicenseBase::revoke
File
- includes/
plugins/ license_type/ base.inc, line 511 - Abstract and interface plugin implementation.
Class
- CommerceLicenseRemoteBase
- Remote license base class.
Code
public function revoke($sync = TRUE) {
if ($sync) {
$this->wrapper->sync_status = COMMERCE_LICENSE_NEEDS_SYNC;
}
$this->wrapper->status = COMMERCE_LICENSE_REVOKED;
$this
->save();
}