hook_field_storage_write

Versions
7
hook_field_storage_write($obj_type, $object, $op, $fields)

Write field data for an object.

Parameters

$obj_type The entity type of object, such as 'node' or 'user'.

$object The object on which to operate.

$op FIELD_STORAGE_UPDATE when updating an existing object, FIELD_STORAGE_INSERT when inserting a new object.

$fields An array listing the fields to be written. The keys and values of the array are field ids.

Related topics

Code

modules/field/field.api.php, line 1228

<?php
function hook_field_storage_write($obj_type, $object, $op, $fields) {
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.