function _geolocation_devel_generate in Geolocation Field 7
Callback for hook_devel_generate().
1 call to _geolocation_devel_generate()
- geolocation_devel_generate in ./
geolocation.devel_generate.inc - Implements hook_devel_generate().
1 string reference to '_geolocation_devel_generate'
- geolocation_devel_generate in ./
geolocation.devel_generate.inc - Implements hook_devel_generate().
File
- ./
geolocation.devel_generate.inc, line 23 - Devel Generate support for Geolocation module.
Code
function _geolocation_devel_generate($object, $field, $instance, $bundle) {
$geolocation = array(
'lat' => rand(-90, 90) - rand(0, 999999) / 1000000,
'lng' => rand(-180, 180) - rand(0, 999999) / 1000000,
);
return _geolocation_field_precalculate_values($geolocation);
}