You are here

public function EntityShareTaxonomyExport::exportDatas in Entity Share 7

Manage taxonomy for the export.

File

modules/entity_share_taxonomy/includes/entity_share_taxonomy.export.inc, line 16
Class for handling taxonomy Export.

Class

EntityShareTaxonomyExport
A class to export the taxonomy term.

Code

public function exportDatas() {

  // Check if the field type is managed by the module.
  if (!$this
    ->isManagedFieldType()) {
    return;
  }

  // If we already come from content field walk.
  if (isset($this->fieldData['entity_type']) && $this->fieldData['entity_type'] == $this->fieldEntityType) {
    $term = (object) $this->fieldData;
  }
  else {
    $field_data = (object) $this->fieldData;
    $tid = $field_data->tid;
    $term = $this
      ->exportTerm($tid);
  }
  $this->fieldData = $term;
}