You are here

function serial_field_delete_instance in Serial Field 7

Implements hook_field_delete_instance().

File

./serial.module, line 75
The Serial module main file.

Code

function serial_field_delete_instance(array $instance) {
  $field = field_read_field($instance['field_name']);
  if (SERIAL_FIELD_TYPE == $field['type']) {

    // Drop the assistant table.
    module_load_include('inc', 'serial');
    _serial_drop_table($field, $instance);
  }
}