function drupal_get_rdf_namespaces

Returns a string containing RDF namespace declarations for use in XML and XHTML output.

1 call to drupal_get_rdf_namespaces()
template_preprocess_html in includes/theme.inc
Preprocess variables for html.tpl.php

File

includes/common.inc, line 269

Code

function drupal_get_rdf_namespaces() {
    $xml_rdf_namespaces = array();
    // Serializes the RDF namespaces in XML namespace syntax.
    if (function_exists('rdf_get_namespaces')) {
        foreach (rdf_get_namespaces() as $prefix => $uri) {
            $xml_rdf_namespaces[] = 'xmlns:' . $prefix . '="' . $uri . '"';
        }
    }
    return count($xml_rdf_namespaces) ? "\n  " . implode("\n  ", $xml_rdf_namespaces) : '';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.