You are here

public function fcIncomplete::__construct in Field Complete 7

File

fc_incomplete/fc_incomplete.inc, line 18
Field Incomplete - Provides a block displaying of what's currently incomplete on an entity - support.

Class

fcIncomplete

Code

public function __construct($name, $parent = NULL, $entity_type = NULL, $entity = NULL) {
  if (empty(self::$field_info)) {
    self::$field_info = field_info_fields();
  }
  $this->name = $name;
  $this->parent = $parent;
  $this->entity_type = $entity_type;
  $this->entity = $entity;
  if ($entity_type && $entity) {
    list(, , $this->bundle) = entity_extract_ids($entity_type, $entity);
  }
}