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));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.