You are here

public function RedhenOrgType::export in RedHen CRM 7

Exports the entity.

Overrides Entity::export

See also

entity_export()

File

modules/redhen_org/lib/redhen_org_type.entity.inc, line 27
Redhen Organization type classes.

Class

RedhenOrgType
The class used for model type entities

Code

public function export($prefix = '') {
  if (!empty($this->group)) {
    $this->data = array(
      'group' => $this->group,
      'group_settings' => $this->group_settings,
    );
    unset($this->group, $this->group_settings);
  }
  return entity_get_controller($this->entityType)
    ->export($this, $prefix);
}