You are here

function block_access_config_set_roles in Block Access 6.2

Same name and namespace in other branches
  1. 6 block_access.module \block_access_config_set_roles()
  2. 7 block_access.module \block_access_config_set_roles()
2 calls to block_access_config_set_roles()
block_access_config_submit in ./block_access.module
block_access_module_form_submit in ./block_access.admin.inc

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);
  }
}