function _field_invoke_default

7.x field.attach.inc _field_invoke_default($op, $entity_type, $entity, &$a = NULL, &$b = NULL, $options = array())

Invoke field.module's version of a field hook.

This function invokes the field_default_[op]() function. Use _field_invoke() to invoke the field type implementation, hook_field_[op]().

See also

_field_invoke()

Related topics

8 calls to _field_invoke_default()
field_attach_form in drupal/modules/field/field.attach.inc
Add form elements for all fields for an entity to a form structure.
field_attach_form_validate in drupal/modules/field/field.attach.inc
Perform field validation against form-submitted field values.
field_attach_insert in drupal/modules/field/field.attach.inc
Save field data for a new entity.
field_attach_prepare_translation in drupal/modules/field/field.attach.inc
Prepares an entity for translation.
field_attach_submit in drupal/modules/field/field.attach.inc
Perform necessary operations on field data submitted by a form.

... See full list

File

drupal/modules/field/field.attach.inc, line 383
Field attach API, allowing entities (nodes, users, ...) to be 'fieldable'.

Code

function _field_invoke_default($op, $entity_type, $entity, &$a = NULL, &$b = NULL, $options = array()) {
  $options['default'] = TRUE;
  return _field_invoke($op, $entity_type, $entity, $a, $b, $options);
}