Closed buddh4 closed 7 years ago
Yes, It will be done without those codes, That was for testing purpose Thanks
I have re-check that with database tables, without those commented codes , the contents are removed (from disable function).
But have you also tested if the files and file entries are removed? This should be done in the afterDelete function of your Activerecord.
I am sorry, I didn't, How can I delete the files which are associated with news? By getting the news image file guid and search for that guid with file and deleting it?
We have to get sure all data is removed when for example the module is disabled or space is removed, is there a reason you removed the following lines:
https://github.com/nadilhassan/newsmodule/blob/master/Module.php#L45
Furthermore you'll have to get sure your files are removed when your news are deleted.