function block_modules_uninstalled

Implements hook_modules_uninstalled().

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

File

modules/block/block.module, line 1105

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.