You are here

function content_access_rules_action_form_after_build in Content Access 7

Form after build callback.

Get the form settings as checkboxes, convert them back to list<text>.

1 string reference to 'content_access_rules_action_form_after_build'
content_access_rules_action_form_alter in content_access_rules/content_access_rules.rules.inc
Alter the settings form to render the text<list> as checkboxes.

File

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

Code

function content_access_rules_action_form_after_build($element, &$form_state) {
  if ($form_state['process_input']) {
    $form_value = drupal_array_get_nested_value($form_state['values'], $element['#parents']);
    $value = content_access_rules_transform_to_rule_value($form_value);
    form_set_value($element, $value, $form_state);
  }
  return $element;
}