You are here

public function ProfileType::isLocked in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.module \ProfileType::isLocked()

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

./profile2.module, line 1336
Support for configurable user profiles.

Class

ProfileType
Use a separate class for profile types so we can specify some defaults modules may alter.

Code

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