You are here

function field_collection_table_pre_render_multiple_fields in Field Collection Table 7

Callback for #pre_render for multiple rows, hide the titles for each field.

1 string reference to 'field_collection_table_pre_render_multiple_fields'
field_collection_table_field_attach_form in ./field_collection_table.module
Implements hook_field_attach_form().

File

./field_collection_table.module, line 511
Module implementing a field-collection table formatter.

Code

function field_collection_table_pre_render_multiple_fields($element) {
  foreach (element_children($element) as $key) {

    // Skip the 'add_more' element.
    if (is_numeric($key)) {
      $element[$key] = field_collection_table_pre_render_field($element[$key]);
    }
  }
  return $element;
}