function theme_gdpr_dump_table_columns in General Data Protection Regulation 7
Table format for table columns.
1 theme call to theme_gdpr_dump_table_columns()
- gdpr_dump_settings_form in modules/
gdpr_dump/ gdpr_dump.module - Gdpr dump settings form.
File
- modules/
gdpr_dump/ gdpr_dump.module, line 316 - Module file for the GDPR Sql-Dump module.
Code
function theme_gdpr_dump_table_columns($variables) {
$element = $variables['table'];
$rows = [];
foreach (element_children($element) as $column_name) {
$row = [];
foreach (element_children($element[$column_name]) as $col) {
$data =& $element[$column_name][$col];
$row[$col] = drupal_render($data);
}
$rows[] = $row;
}
return theme('table', [
'header' => $element['#header'],
'rows' => $rows,
]);
}