function block_user_role_delete
Same name in other branches
- 9 core/modules/block/block.module \block_user_role_delete()
- 8.9.x core/modules/block/block.module \block_user_role_delete()
- 10 core/modules/block/block.module \block_user_role_delete()
- 11.x core/modules/block/block.module \block_user_role_delete()
Implements hook_user_role_delete().
Removes deleted role from blocks that use it.
File
-
modules/
block/ block.module, line 1053
Code
function block_user_role_delete($role) {
db_delete('block_role')->condition('rid', $role->rid)
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.