public function FacebookPublicationTypeEntity::isLocked in Facebook Autopost 7
Returns whether the Facebook publication type is locked.
Facebook publication types provided in code are automatically treated as locked, as well as any fixed Facebook publication type. Locked may not be deleted or renamed.
File
- fb_autopost_entity/
fb_autopost_entity.module, line 595 - Module implementation file
Class
- FacebookPublicationTypeEntity
- Use a separate class for Facebook publication 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);
}