function hook_field_attach_preprocess_alter
hook_field_attach_preprocess_alter(&$variables, $context)
Alter field_attach_preprocess() variables.
This hook is invoked while preprocessing the field.tpl.php template file 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_type: The type of $entity; for example, 'node' or 'user'.
- entity: The entity with fields to render.
- element: The structured array containing the values ready for rendering.
Related topics
File
- modules/field/field.api.php, line 1429
- Hooks provided by the Field module.
Code
function hook_field_attach_preprocess_alter(&$variables, $context) { // @todo Needs function body. }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_attach_preprocess_alter/7.x