1 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

File

core/modules/field/field.attach.inc, line 347
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);
}