You are here

function geofield_return_schemaorg_shape in Geofield 7.2

Gets the Schema.org formatted shape value.

1 string reference to 'geofield_return_schemaorg_shape'
geofield_data_property_info in ./geofield.schemaorg.inc
Defines info for the properties of the geofield field data structure.

File

./geofield.schemaorg.inc, line 166

Code

function geofield_return_schemaorg_shape($data, array $options, $name) {
  if (is_array($data) || is_object($data) && $data instanceof ArrayAccess) {
    return geofield_schemaorg_shape($data);
  }
  return NULL;
}