You are here

function boxes_disable in Boxes 7.2

Implements hook_disable().

File

./boxes.install, line 92
Boxes installation routines

Code

function boxes_disable() {

  // Remove all of the currently placed blocks
  // Delete any blocks
  // @see block_custom_block_delete_submit()
  db_delete('block')
    ->condition('module', 'boxes')
    ->execute();
  db_delete('block_role')
    ->condition('module', 'boxes')
    ->execute();

  // @see node_form_block_custom_block_delete_submit()
  db_delete('block_node_type')
    ->condition('module', 'boxes')
    ->execute();
}