You are here

function taxonomy_xml_rdf_taxonomy_term_path in Taxonomy import/export via XML 6.2

Same name and namespace in other branches
  1. 7 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

Either a $term or $tid is fine:

1 call to taxonomy_xml_rdf_taxonomy_term_path()
taxonomy_xml_get_term_guid in ./taxonomy_xml.module
Return (and remember) the URI associated with this term.

File

./taxonomy_xml.module, line 1946
This module makes 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']));
}