On this page
function hook_field_storage_purge_field
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
- modules/field/field.api.php, line 2668
- 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);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_storage_purge_field/7.x