You are here

function _paragraphs_table_1_row in Paragraphs table 8

Get table row.

1 call to _paragraphs_table_1_row()
paragraphs_table_preprocess_field_multiple_value_form in ./paragraphs_table.module
Implements hook_preprocess_HOOK().

File

./paragraphs_table.module, line 191
Contains paragraphs_table.module.

Code

function _paragraphs_table_1_row($fields, $rows_data, $show_all = FALSE) {
  $rows['#type'] = 'table';
  foreach ($fields as $field_name => $field) {
    $field_form = $rows_data[$field_name];
    _paragraphs_table_hidden_label($field_form['widget']);
    $rows[0][$field_name] = $field_form;
  }
  return $rows;
}