function hook_field_storage_purge_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
1 function implements hook_field_storage_purge_field()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- field_sql_storage_field_storage_purge_field in modules/
field/ modules/ field_sql_storage/ field_sql_storage.module - Implements hook_field_storage_purge_field().
1 invocation of hook_field_storage_purge_field()
- field_purge_field in modules/
field/ field.crud.inc - Purges a field record from the database.
File
-
modules/
field/ field.api.php, line 2694
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.