You are here

public function CommerceLicenseFile::renew in Commerce File 7.2

Implements CommerceLicenseInterface::renew().

Overrides CommerceLicenseBase::renew

File

plugins/license_type/CommerceLicenseFile.class.php, line 52

Class

CommerceLicenseFile
File license type.

Code

public function renew($expires) {
  parent::renew($expires);

  // Clear the download log in order to reset download limits.
  commerce_file_download_log_clear(array(
    'license_id' => $this->license_id,
  ));
}