attached patch converts block deletions to the deletion API. also fixed up a $form_state problem with block deletions, so the patch can be properly tested.

Comments

drewish’s picture

i couldn't test this completely because there's a bug that prevents a blocks roles from being saved but it would seem to me that we should be deleting records from {block_roles} as well...

drewish’s picture

http://drupal.org/node/152585 fixes the saving problem...

hunmonk’s picture

StatusFileSize
new2.01 KB

re-rolled to include removing data from {blocks_roles}. looking at the code in HEAD, it seems that we've never deleted from {blocks_roles} when a block is deleted! perhaps we should work up a db upgrade for that. out of scope for this patch, of course...

hunmonk’s picture

StatusFileSize
new1.91 KB

re-rolled again to stay current w/ HEAD.

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Tested and works! RTBC.

hunmonk’s picture

Assigned: hunmonk » Unassigned
webchick’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Deletion API was rolled back.