function field_test_default_value

cis7 field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)
cle7 field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)
elmsmedia7 field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)
icor7 field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)
meedjum_blog7 field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)
mooc7 field_test.field.inc field_test_default_value($entity_type, $entity, $field, $instance)

Sample 'default value' callback.

File

modules/field/tests/field_test.field.inc, line 401
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));
}