You are here

function og_devel_generate in Organic groups 7

Same name and namespace in other branches
  1. 6.2 og.module \og_devel_generate()
  2. 6 og.module \og_devel_generate()

@file Devel generate integration with Organic groups module.

File

./og.devel_generate.inc, line 8
Devel generate integration with Organic groups module.

Code

function og_devel_generate($object, $field, $instance, $bundle) {
  if (field_behaviors_widget('multiple values', $instance) == FIELD_BEHAVIOR_CUSTOM) {
    return og_devel_generate_multiple('_og_devel_generate', $object, $field, $instance, $bundle);
  }
  else {
    return _og_devel_generate($object, $field, $instance, $bundle);
  }
}