You are here

function content_access_save_permissions in Content Access 7

Same name and namespace in other branches
  1. 6 content_access.admin.inc \content_access_save_permissions()

Saves the given permissions by role to the database.

1 call to content_access_save_permissions()
content_access_admin_settings_submit in ./content_access.admin.inc
Submit handler for per content type settings form.

File

./content_access.admin.inc, line 257
Content access administration UI.

Code

function content_access_save_permissions($roles_permissions) {
  foreach ($roles_permissions as $rid => $permissions) {
    user_role_change_permissions($rid, $permissions);
  }
}