1 field.api.php hook_field_storage_purge_field($field)

Remove field storage information when a field record is purged.

Called from field_purge_field() to allow the field storage module to remove field information when a field is being purged.

Parameters

$field: The field being purged.

Related topics

File

core/modules/field/field.api.php, line 2712
Hooks provided by the Field module.

Code

function hook_field_storage_purge_field($field) {
  $table_name = _field_sql_storage_tablename($field);
  $revision_name = _field_sql_storage_revision_tablename($field);
  db_drop_table($table_name);
  db_drop_table($revision_name);
}