public function CommerceCouponType::isLocked in Commerce Coupon 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
- classes/
commerce_coupon_type.inc, line 26 - Coupon..
Class
- CommerceCouponType
- @file Coupon..
Code
public function isLocked() {
return isset($this->status) && empty($this->is_new) && ($this->status & ENTITY_IN_CODE || $this->status & ENTITY_FIXED);
}