function block_user_role_delete

Implements hook_user_role_delete().

Removes deleted role from blocks that use it.

File

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

Code

function block_user_role_delete($role) {
  db_delete('block_role')
    ->condition('rid', $role->rid)
    ->execute();
}