Commit 5ba0c596 authored by drumm's avatar drumm

#42514 by wtanaka and dopry. More thoroughly delete custom blocks.

parent 66fe517e
......@@ -541,6 +541,7 @@ function block_box_delete($bid = 0) {
function block_box_delete_submit($form_id, $form_values) {
db_query('DELETE FROM {boxes} WHERE bid = %d', $form_values['bid']);
db_query("DELETE FROM {blocks} WHERE module = 'block' AND delta = %d", $form_values['bid']);
drupal_set_message(t('The block %name has been removed.', array('%name' => $form_values['info'])));
return 'admin/build/block';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment