I am trying to build a Expression engine field-type(add-on),where I will be storing the field-type data in a separate table(Ex:field_type_data).I am able to update the records of the table "field_type_data" whenever a entry or multiple entries gets deleted,through function delete($ids) in ft.fieldtypename.php which gets called whenever a entry is deleted and $ids is an array containing the ids of the entries that are deleted.
But I am not able to do the same when a channel itself is deleted by user.Because with the deletion of a channel all the entries related to that channel also gets deleted.
Can anyone help me please,how to and where I can know the list of entries related to the channel when it gets deleted.
Thanks in advance