drupal_get_rdf_namespaces
function drupal_get_rdf_namespaces
drupal_get_rdf_namespaces()
Returns a string containing RDF namespace declarations for use in XML and XHTML output.
File
- includes/common.inc, line 269
- Common functions that many Drupal modules will need to reference.
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) : ''; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_get_rdf_namespaces/7.x