summaryrefslogtreecommitdiff
path: root/modules/field/field.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r--modules/field/field.api.php36
1 files changed, 17 insertions, 19 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index 52673a39c..60e54d5d8 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -932,15 +932,15 @@ function hook_field_attach_presave($obj_type, $object) {
* This hook is invoked while preprocessing the field.tpl.php template file.
*
* @param $variables
- * The variables array is passed by reference and will be populated with field values.
- * @param $obj_type
- * The type of $object; e.g. 'node' or 'user'.
- * @param $object
- * The object with fields to render.
- * @param $element
- * The structured array containing the values ready for rendering.
+ * The variables array is passed by reference and will be populated with field
+ * values.
+ * @param $context
+ * An associative array containing:
+ * - obj_type: The type of $object; e.g. 'node' or 'user'.
+ * - object: The object with fields to render.
+ * - element: The structured array containing the values ready for rendering.
*/
-function hook_field_attach_preprocess_alter(&$variables, $obj_type, $object, $element) {
+function hook_field_attach_preprocess_alter(&$variables, $context) {
}
/**
@@ -1042,18 +1042,16 @@ function hook_field_attach_delete_revision($obj_type, $object) {
*
* This hook is invoked after the field module has performed the operation.
*
- * @param $output
- * The structured content array tree for all of $object's fields.
- * @param $obj_type
- * The type of $object; e.g. 'node' or 'user'.
- * @param $object
- * The object with fields to render.
- * @param $build_mode
- * Build mode, e.g. 'full', 'teaser'...
- * @param $langcode
- * The language in which the field values will be displayed.
+ * @param &$output
+ * The structured content array tree for all of $object's fields.
+ * @param $context
+ * An associative array containing:
+ * - obj_type: The type of $object; e.g. 'node' or 'user'.
+ * - object: The object with fields to render.
+ * - build_mode: Build mode, e.g. 'full', 'teaser'...
+ * - langcode: The language in which the field values will be displayed.
*/
-function hook_field_attach_view_alter($output, $obj_type, $object, $build_mode, $langcode) {
+function hook_field_attach_view_alter(&$output, $context) {
}
/**