You are here

function block_modules_uninstalled in Drupal 7

Implements hook_modules_uninstalled().

Cleans up {block} and {block_role} tables from modules' blocks.

File

modules/block/block.module, line 1105
Controls the visual building blocks a page is constructed with.

Code

function block_modules_uninstalled($modules) {
  db_delete('block')
    ->condition('module', $modules, 'IN')
    ->execute();
  db_delete('block_role')
    ->condition('module', $modules, 'IN')
    ->execute();
}