You are here

function multifield_table_pre_render_multiple_fields in Multifield table 7

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

1 string reference to 'multifield_table_pre_render_multiple_fields'
multifield_table_form_alter in ./multifield_table.module
Implements hook_form_alter().

File

./multifield_table.module, line 225
Provides a table formatter and widget for multifield field types.

Code

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

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