You are here

public function MigrateTermNodeHandler::fields in Migrate 6.2

File

plugins/destinations/term.inc, line 317
Support for taxonomy term destinations.

Class

MigrateTermNodeHandler
Handler to process term assignments for nodes

Code

public function fields($entity_type, $bundle) {
  $fields = array();
  $vocabs = taxonomy_get_vocabularies($bundle);
  foreach ($vocabs as $vid => $vocab) {
    $vocab_name = $vocab->name;
    $fields[$vocab_name] = $vocab_name;
  }
  return $fields;
}