function mvf_entityreference_field_instance_settings_pre_render in Measured Value Field 7
Form element process function.
Hide entity reference instance settings form element if it is empty.
1 string reference to 'mvf_entityreference_field_instance_settings_pre_render'
- mvf_field_instance_settings_form in ./
mvf.module - Implements hook_field_instance_settings_form().
File
- ./
mvf.module, line 614 - Define a field type of measured value.
Code
function mvf_entityreference_field_instance_settings_pre_render($element) {
if (count(element_children($element)) == 1 && isset($element['settings']) && count(element_children($element['settings'])) == 0) {
// That's an empty construction produced by entityreference module.
$element['#printed'] = TRUE;
}
return $element;
}