I want to implement some logic using what I can define that one delete of one field delete other related field.

so is there any module available or anythings else using what I can define cascade delete.


You can use hook_field_delete to determine which field is removed, and if its "yours" - find out which field you need to delete next and delete it

function hook_field_delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
   if ($field['field_name'] == 'YOUR_FIELD_NAME') {
       //do some stuff to determine which
       //field you need to delete
       //and delete it 
       //how to remove the field - the link below


how to remove the field

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.