function hook_field_attach_preprocess_alter

Alter field_attach_preprocess() variables.

This hook is invoked while preprocessing field templates in field_attach_preprocess().

Parameters

$variables: The variables array is passed by reference and will be populated with field values.

$context: An associative array containing:

  • entity: The entity with fields to render.
  • element: The structured array containing the values ready for rendering.

Related topics

File

drupal/core/modules/field/field.api.php, line 984

Code

function hook_field_attach_preprocess_alter(&$variables, $context) {

  // @todo Needs function body.
}