function hook_field_delete_field

Act on a field being deleted.

This hook lets modules react to the deletion of an existing field. It is called after the definition is deleted.

Parameters

$field: The field just deleted.

Related topics

1 function implements hook_field_delete_field()

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

image_field_delete_field in drupal/core/modules/image/image.module
Implements hook_field_delete_field().
1 invocation of hook_field_delete_field()
Field::delete in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php
Implements \Drupal\Core\Entity\EntityInterface::delete().

File

drupal/core/modules/field/field.api.php, line 1917

Code

function hook_field_delete_field($field) {

  // @todo Needs function body.
}