function field_sql_storage_field_storage_purge_field

field_sql_storage_field_storage_purge_field($field)

Implements hook_field_storage_purge_field().

All field data items and instances have already been purged, so all that is left is to delete the table.

File

modules/field/modules/field_sql_storage/field_sql_storage.module, line 796
Default implementation of the field storage API.

Code

function field_sql_storage_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!modules!field_sql_storage!field_sql_storage.module/function/field_sql_storage_field_storage_purge_field/7.x