You are here

function taxonomy_xml_set_term_guid in Taxonomy import/export via XML 7

Same name and namespace in other branches
  1. 6.2 taxonomy_xml.module \taxonomy_xml_set_term_guid()

Insert a URI serialization into a term object.

Does NOT actually save the value, but puts values that will be saved by the appropriate handlers (CCK, taxonomy_enhancer or rdf) when the term is saved.

2 calls to taxonomy_xml_set_term_guid()
taxonomy_xml_canonicize_predicates in ./taxonomy_xml.process.inc
Convert aliased predicates into common ones.
taxonomy_xml_rdf_parse in formats/rdf_format.inc
Read in RDF taxonomies and vocabularies. Create vocabs and terms as needed.

File

./taxonomy_xml.module, line 400
Make it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_set_term_guid(&$term, $guid) {

  // Use our custom term field to store this data.
  $term->field_guid['und'][0]['value'] = $term->guid = $guid;
}