Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDelete module setting on module deleteDelete module setting on module delete
Previous
 
Next
New Post
8/10/2013 12:04 PM
 

Hi all,

Any help would be appreciated, I cant seem to figure this one out, I think it may not be possible.

I have a custom module that does not use ModuleSettings or TabModuleSettings table to hold settings. It was decided to put the modules custom settings into own table. All works fine but I am just trying to make sure the module cleans up after itself. On module uninstal, uninstall script runs and removes table, all good, but when you delete a module from a page and then hard delete from recycling bin does anyone know an event to subscribe to or a way to delete that modules settings from the custom table, the way that DNN core will delete module or TabModule settings at the point of this hard delete?

Obviously I would rather clean up the tables rather than them just being deleted as a whole if entire module is uninstalled; the tables could get huge is people keep creating and deleting modules (not very likely but still!).

Thanks for any help / advice you can offer.

 
New Post
8/11/2013 3:47 AM
 
if you place a foreign key reference between your master table with module content (if not existent, place a foreign key on dnn Modules table) to your settings table on column ModuleId with cascade delete - done.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDelete module setting on module deleteDelete module setting on module delete


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out