function _rac_field_validate in Role Access Control 8
Same name and namespace in other branches
- 8.2 rac.module \_rac_field_validate()
Implements hook_field_validate().
Add back restircted field values, to fields they were removed from.
1 string reference to '_rac_field_validate'
- _rac_restrict_field_values in ./
rac.module - Remove options from a field that should not be displayed to the user.
File
- ./
rac.module, line 236 - Module providing role access relations.
Code
function _rac_field_validate($element, FormStateInterface $form_state, $form) {
$fieldName = $element["#field_name"];
// Pass on value restoration to helper function.
_rac_restore_field_values($fieldName, $element, $form_state);
}