1.20.x field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)

Sample 'default value' callback.

File

modules/field/tests/field_test/field_test.field.inc, line 407
Defines a field type and its formatters and widgets.

Code

function field_test_default_value($entity_type, $entity, $field, $instance) {
  return array(array('value' => 99));
}