You are here

function ddf_field_delete_field in Dynamic dependent fields 7

Implements hook_field_delete_field().

File

./ddf.module, line 140

Code

function ddf_field_delete_field($field) {
  db_delete('ddf')
    ->condition('field_name', $field['field_name'])
    ->execute();
  db_delete('ddf')
    ->condition('dependent_field_name', $field['field_name'])
    ->execute();
}