function _gmap_cck_check_gpx_source in GMap Addons 7
Same name and namespace in other branches
- 5 gmap_cck.module \_gmap_cck_check_gpx_source()
- 6 gmap_cck.module \_gmap_cck_check_gpx_source()
End of "addtogroup hooks".
3 calls to _gmap_cck_check_gpx_source()
- gmap_cck_field_formatter in ./
gmap_cck.module - Prepare an individual item for viewing in a browser.
- gmap_cck_widget in ./
gmap_cck.module - Define the behavior of a widget.
- _gmap_cck_get_gpx in ./
gmap_cck.module - process gpx-parameter to show something on the map
File
- ./
gmap_cck.module, line 460 - display of a google map as cck field
Code
function _gmap_cck_check_gpx_source(&$data, &$field, &$node) {
$r = true;
if ($field['gpx'] == 'filefield') {
$fname = 'field_' . $field['gpx_src'];
$ff =& $node->{$fname};
$r = isset($ff) && _gmap_cck_gpxdata_filefield($data, $ff);
}
if (!$r) {
// TODO: ev. try to use $data['gpx']['file']
unset($data['gpx']);
}
return $r;
}