You are here

function geofield_devel_generate in Geofield 7

Same name and namespace in other branches
  1. 7.2 geofield.devel_generate.inc \geofield_devel_generate()

Implements hook_devel_generate().

File

./geofield.devel_generate.inc, line 10
Create random data to populate geofields.

Code

function geofield_devel_generate($object, $field, $instance, $bundle) {
  if (field_behaviors_widget('multiple values', $instance) == FIELD_BEHAVIOR_CUSTOM) {
    return devel_generate_multiple('_geofield_devel_generate', $object, $field, $instance, $bundle);
  }
  else {
    return _geofield_devel_generate($object, $field, $instance, $bundle);
  }
}