You are here

function content_access_parse_settings in Content Access 6

Same name and namespace in other branches
  1. 5 content_access.workflow_ng.inc \content_access_parse_settings()

Parse submitted settings for per-node form into internal format.

3 calls to content_access_parse_settings()
content_access_action_grant_node_permissions_submit in ./content_access.rules.inc
content_access_action_revoke_node_permissions_submit in ./content_access.rules.inc
content_access_condition_check_permissions_submit in ./content_access.rules.inc

File

./content_access.rules.inc, line 21
Rules specific functions that expose content_access' API.

Code

function content_access_parse_settings(&$settings, $form, $form_state) {
  foreach (_content_access_get_operations() as $op) {
    $settings[$op] = array_keys(array_filter($form_state['values'][$op]));
  }
}