You are here

public function CommerceOptionSet::isLocked in Commerce Product Option 7

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

Profile types provided in code are automatically treated as locked, as well as any fixed profile type.

File

includes/commerce_option_set.inc, line 22

Class

CommerceOptionSet

Code

public function isLocked() {
  return isset($this->status) && empty($this->is_new) && ($this->status & ENTITY_IN_CODE || $this->status & ENTITY_FIXED);
}