function taxonomy_xml_rdf_taxonomy_term_path in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 taxonomy_xml.module \taxonomy_xml_rdf_taxonomy_term_path()
Return the full, internal taxonomy/term/n URI
Note that we must always use the taxonomy/term/n system path, not the alias.
Parameters
$term int|object: Either a $term or $tid is fine
Return value
object Term.
File
- ./
taxonomy_xml.module, line 773 - Make it possible to import and export taxonomies as XML documents.
Code
function taxonomy_xml_rdf_taxonomy_term_path($term) {
#return url('taxonomy/term/' . (is_numeric($term) ? $term : ((is_object($term)) ? $term->tid : $term['tid'] )), array('absolute' => TRUE));
// Don't alias this, Drupal, use the system path.
return url('taxonomy/term/', array(
'absolute' => TRUE,
)) . (is_numeric($term) ? $term : (is_object($term) ? $term->tid : $term['tid']));
}