The module could generate a lot of blocks but have no uninstall function.
Because D6 core have bug described in #735900: Deleting module's blocks when module is uninstalled the uninstall is required.

CommentFileSizeAuthor
#1 cck_blocks-uninstall-followup.patch1.05 KBAnonymous (not verified)
cck_blocks-uninstall.patch1023 bytesandypost

Comments

Anonymous’s picture

Assigned: Unassigned »
StatusFileSize
new1.05 KB

We should not only remove the variables but also the blocks generated by cck_blocks. Please do a review for my patch. It contains your changes as well.

andypost’s picture

No, it's a task for http://api.drupal.org/api/function/drupal_uninstall_module/6 which is broken now in D6 and should be fixed as D7

Clear modules' block is a task or core, none of contrib modules are do it now, also this already commited to D7 - clean {blocks} and {blocks_roles}

As I point at http://drupal.org/node/735900#comment-2705428

Gabor already confirm this bug and it would be great if you help to test this patch

So I recommend to commit my patch or add cleaning of {blocks_roles} too

Anonymous’s picture

Status: Needs review » Fixed

I decided to wait for the core patch to be committed and added your patch.

andypost’s picture

Could you help with #735900: Deleting module's blocks when module is uninstalled

An opinion or reviewing... I think all modules with blocks need this

Status: Fixed » Closed (fixed)

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