how can I add a condition before deleting a field. I have added a filed collection which includes two fields subject and cost and while removing this field I want to check if subject is in use with my other tables then remove it else gives a message you can not remove. I want to add my custom condition before a user deletes a field. How can I achieve this. Please help me in this.

Comments

jmuzz’s picture

Category: Task » Support request
Priority: Major » Normal
Issue tags: -delete field collection
jmuzz’s picture

Status: Active » Fixed

You can implement hook_entity_info_alter to set up a custom access callback for field collection items.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.