function location_rss_namespaces in Location 7.4
Same name and namespace in other branches
- 7.3 location.georss.inc \location_rss_namespaces()
@function Return an array of namespaces needed for a mode.
1 call to location_rss_namespaces()
- location_node_node_view in ./
location_node.module - Implementation of hook_node_view().
File
- ./
location.georss.inc, line 12 - GeoRSS support for Location.
Code
function location_rss_namespaces($mode = 'simple') {
switch ($mode) {
case 'w3c':
case 'w3c_bugcompat':
return array(
'xmlns:geo' => 'http://www.w3.org/2003/01/geo/wgs84_pos#',
);
case 'simple':
return array(
'xmlns:georss' => 'http://www.georss.org/georss',
);
case 'gml':
return array(
'xmlns:georss' => 'http://www.georss.org/georss',
'xmlns:gml' => 'http://www.opengis.net/gml',
);
}
}