function block_user_role_delete

block_user_role_delete($role)

Implements hook_user_role_delete().

Removes deleted role from blocks that use it.

File

modules/block/block.module, line 1058
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();
}

© 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_user_role_delete/7.x