You are here

public function AssetType::isLocked in Asset 7

Returns whether the asset type is locked, thus may not be deleted or renamed.

Asset types provided in code are automatically treated as locked, as well as any fixed asset type.

File

includes/asset.controllers.inc, line 205
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 isLocked() {
  return isset($this->status) && empty($this->is_new) && ($this->status & ENTITY_IN_CODE || $this->status & ENTITY_FIXED);
}