You are here

function taxonomy_xml_get_vocabulary_uri in Taxonomy import/export via XML 7

Return a URI associated with this vocabulary.

Parameters

object|int $vocabulary: Either a vocab or a vid.

Return value

string An absolute URI

3 calls to taxonomy_xml_get_vocabulary_uri()
taxonomy_server_vocabulary_page in taxonomy_server/taxonomy_server.module
Display a page showing one or all available vocabularies
taxonomy_xml_rdf_add_terms in formats/rdf_format.inc
Append definitions of a list of terms on to a DOM container.
taxonomy_xml_rdf_add_vocab in formats/rdf_format.inc
Create a vocabulary definition (just the def, not its terms) and insert it into the given document element.

File

./taxonomy_xml.module, line 442
Make it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_get_vocabulary_uri($vocabulary) {
  $vid = is_numeric($vocabulary) ? $vocabulary : $vocabulary->vid;
  $uri = url('taxonomy/vocabulary/' . $vid, array(
    'absolute' => TRUE,
  ));
  return $uri;
}