You are here

function taxonomy_xml_current_terms in Taxonomy import/export via XML 6

Same name and namespace in other branches
  1. 6.2 taxonomy_xml.module \taxonomy_xml_current_terms()
  2. 7 taxonomy_xml.process.inc \taxonomy_xml_current_terms()

Returns a HANDLE on the current working list of terms. Basically behaving like a global, so we can cache and share the working list.

Remember to fetch the list by handle, eg $terms =& taxonoomy_xml_current_terms() if you are planning on modifying the list.

3 calls to taxonomy_xml_current_terms()
taxonomy_xml_add_all_children_to_queue in ./taxonomy_xml.module
If the currently processing term refers to other terms by URI, set up a process to retrieve them recursively later.
taxonomy_xml_mesh_parse in ./mesh_format.inc
Reads a XML file and creates the term definitions found in it.
taxonomy_xml_tcs_parse in ./tcs_format.inc
Reads a TCS file and creates the term definitions found in it.

File

./taxonomy_xml.module, line 1462
taxonomy_xml.module This module makes it possible to import and export taxonomies as XML documents.

Code

function &taxonomy_xml_current_terms() {
  static $terms;
  if (!isset($terms)) {
    $terms = array();
  }
  return $terms;
}