function hook_field_delete_revision


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 field.api.php hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items)
cle7 field.api.php hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items)
elmsmedia7 field.api.php hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items)
icor7 field.api.php hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items)
meedjum_blog7 field.api.php hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items)
mooc7 field.api.php hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items)

Define custom revision delete behavior for this module's field types.

This hook is invoked just before the data is deleted from field storage in field_attach_delete_revision(), and will only be called for fieldable types that are versioned.


$entity_type: The type of $entity.

$entity: The entity for the operation.

$field: The field structure for the operation.

$instance: The instance structure for $field on $entity's bundle.

$langcode: The language associated with $items.

$items: $entity->{$field['field_name']}[$langcode], or an empty array if unset.

Related topics

4 functions implement hook_field_delete_revision()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_collection_field_delete_revision in sites/all/modules/ulmus/field_collection/field_collection.module
Implements hook_field_delete_revision().
file_field_delete_revision in modules/file/
Implements hook_field_delete_revision().
image_field_delete_revision in modules/image/
Implements hook_field_delete_revision().
mediafield_field_delete_revision in sites/all/modules/ulmus/media/modules/mediafield/mediafield.module
Implements hook_field_delete_revision().
1 invocation of hook_field_delete_revision()
field_attach_delete_revision in modules/field/
Delete field data for a single revision of an existing entity. The passed entity must have a revision id attribute.


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


function hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items) {
  list($id, $vid, $bundle) = entity_extract_ids($entity_type, $entity);
  foreach ($items as $delta => $item) {
    // For hook_file_references, remember that this file is being deleted.
    $item['file_field_name'] = $field['field_name'];
    if (file_field_delete_file($item, $field, $entity_type, $id)) {
      $items[$delta] = NULL;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.