hook_field_storage_delete_revision
- Versions
- 7
hook_field_storage_delete_revision($obj_type, $object, $fields)
Delete a single revision of field data for an object.
Deleting the current (most recently written) revision is not allowed as has undefined results.
Parameters
$obj_type The entity type of object, such as 'node' or 'user'.
$object The object on which to operate. The revision to delete is indicated by the object's revision id property, as identified by hook_fieldable_info() for $obj_type.
$fields An array listing the fields to delete. The keys and values of the array are field ids.
Related topics
Code
modules/field/field.api.php, line 1236
<?php
function hook_field_storage_delete_revision($obj_type, $object, $fields) {
}
?>Login or register to post comments 