Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37673

Re: Data deletion when removing a block instance

$
0
0
by john doe.  

Thank you Tim,

I tried to overide the instance_delete method:
     instance_delete function () {
global $ DB;
$ DB-> delete_records ('table_name', array ('id' => $ val));
     return true;
     }

I tested the query and it works. But when removing the block, the query is not executed, and no data is deleted.
Have you another idea?
Thank you again.


Viewing all articles
Browse latest Browse all 37673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>