You are here

function _multifield_show_only_if_visible_children in Multifield 7.2

Same name and namespace in other branches
  1. 7 multifield.field.inc \_multifield_show_only_if_visible_children()
1 string reference to '_multifield_show_only_if_visible_children'
multifield_field_widget_form in ./multifield.field.inc
Implements hook_field_widget_form().

File

./multifield.field.inc, line 578
Field integration for the Multifield module.

Code

function _multifield_show_only_if_visible_children($elements) {
  if (!element_get_visible_children($elements)) {
    $elements['#printed'] = TRUE;
  }
  return $elements;
}