You are here

function multifield_field_delete_field in Multifield 7.2

Same name and namespace in other branches
  1. 7 multifield.module \multifield_field_delete_field()

Implements hook_field_delete_field().

File

./multifield.module, line 345

Code

function multifield_field_delete_field($field) {
  if ($machine_name = multifield_extract_multifield_machine_name($field)) {
    if ($field['type'] == 'multifield') {
      field_attach_delete_bundle('multifield', $machine_name);
    }
    multifield_cache_clear();
  }
}