block_box_delete_confirm_submit

Deletion of custom blocks.

File

modules/block.module, line 496
Controls the boxes that are displayed around the main content.

Code

function block_box_delete_confirm_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' => theme('placeholder', $form_values['info']))));
  cache_clear_all();
  return 'admin/block';
}
Login or register to post comments