function olivero_test_preprocess_field_multiple_value_form
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/olivero_test/olivero_test.module \olivero_test_preprocess_field_multiple_value_form()
- 11.x core/modules/system/tests/modules/olivero_test/olivero_test.module \olivero_test_preprocess_field_multiple_value_form()
Implements hook_preprocess_field_multiple_value_form().
File
-
core/
modules/ system/ tests/ modules/ olivero_test/ olivero_test.module, line 11
Code
function olivero_test_preprocess_field_multiple_value_form(&$variables) {
// Set test multiple value form field to disabled
if ($variables["element"]["#field_name"] === "field_multiple_value_form_field") {
$variables['element']['#disabled'] = TRUE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.