block_modules_uninstalled
function block_modules_uninstalled
block_modules_uninstalled($modules)
Implements hook_modules_uninstalled().
Cleans up {block} and {block_role} tables from modules' blocks.
File
- modules/block/block.module, line 1110
- 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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.module/function/block_modules_uninstalled/7.x