drupal_get_rdf_namespaces

Definition

drupal_get_rdf_namespaces()
drupal/includes/common.inc, line 118

Description

Return a string containing RDF namespaces for the <html> tag of an XHTML page.

Code

function drupal_get_rdf_namespaces() {
  // Serialize the RDF namespaces used in RDFa annotation.
  $xml_rdf_namespaces = array();
  foreach (module_invoke_all('rdf_namespaces') as $prefix => $uri) {
    $xml_rdf_namespaces[] = 'xmlns:' . $prefix . '="' . $uri . '"';
  }
  return implode("\n  ", $xml_rdf_namespaces);
}