function block_user_role_delete
Implements hook_user_role_delete().
Removes deleted role from blocks that use it.
Archivo
- drupal-7.x/
modules/ block/ block.module, line 1019 - Controls the visual building blocks a page is constructed with.
Código
function block_user_role_delete($role) {
db_delete('block_role')->condition('rid', $role->rid)->execute();
}