function taxonomy_xml_current_terms in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 taxonomy_xml.module \taxonomy_xml_current_terms()
- 6 taxonomy_xml.module \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.process.inc - Queue up an import action.
- taxonomy_xml_mesh_parse in formats/
mesh_format.inc - Reads a XML file and creates the term definitions found in it.
- taxonomy_xml_tcs_parse in formats/
tcs_format.inc - Reads a TCS file and creates the term definitions found in it.
File
- ./
taxonomy_xml.process.inc, line 1227 - The workhorse processes for importing taxonomies.
Code
function &taxonomy_xml_current_terms() {
static $terms;
if (!isset($terms)) {
$terms = array();
}
return $terms;
}