You are here

function machine_name_devel_generate in Machine name 7

Same name and namespace in other branches
  1. 7.2 machine_name.devel_generate.inc \machine_name_devel_generate()

@file Support creating machine name values via devel_generate.

File

./machine_name.devel_generate.inc, line 6
Support creating machine name values via devel_generate.

Code

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