function block_access_config_set_roles in Block Access 6.2
Same name and namespace in other branches
- 6 block_access.module \block_access_config_set_roles()
- 7 block_access.module \block_access_config_set_roles()
2 calls to block_access_config_set_roles()
File
- ./
block_access.module, line 489
Code
function block_access_config_set_roles($perm, $roleset, $module, $delta = null) {
$roles = array_filter($roleset);
block_access_delete_roles($module, $perm, $delta);
foreach ($roles as $rid) {
block_access_add_role($rid, $module, $perm, $delta);
}
}