function taxonomy_xml_taxonomy_term_uri in Taxonomy import/export via XML 6.2
Entity uri callback.
1 call to taxonomy_xml_taxonomy_term_uri()
- taxonomy_xml_add_terms_as_rdf in ./
rdf_format.inc - Given a list of terms, append definitions of them to the passed DOM container
1 string reference to 'taxonomy_xml_taxonomy_term_uri'
- taxonomy_xml_rdf_mapping in ./
taxonomy_xml.module - Implements hook_rdf_mapping().
File
- ./
rdf_format.inc, line 1362 - Include routines for RDF parsing and taxonomy/term creation. @author dman http://coders.co.nz
Code
function taxonomy_xml_taxonomy_term_uri($term) {
if (is_numeric($term)) {
$term = taxonomy_get_term($term);
}
return array(
'path' => 'taxonomy/term/' . $term->tid,
'title' => $term->name,
'id' => 'term-' . $term->tid,
);
}