You are here

public function AssetType::delete in Asset 7

Delete function.

We have to override this method just to invoke the entity_defaults_rebuild, in case when no existent types were reverted

Overrides Entity::delete

File

includes/asset.controllers.inc, line 215
Provides a controller classes for Asset and related entities

Class

AssetType
Use a separate class for asset types so we can specify some defaults.

Code

public function delete() {
  parent::delete();
  entity_defaults_rebuild(array(
    $this->entityType,
  ));
}