You are here

function location_rss_namespaces in Location 7.3

Same name and namespace in other branches
  1. 7.4 location.georss.inc \location_rss_namespaces()

Return an array of namespaces needed for a mode.

1 call to location_rss_namespaces()
location_node_node_view in ./location_node.module
Implements hook_node_view().

File

./location.georss.inc, line 11
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',
      );
  }
}