You are here

function name_devel_generate in Name Field 7

Implements hook_devel_generate().

File

./name.devel_generate.inc, line 13
Devel Generate module integration.

Code

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