gdpr-user-data-page.tpl.php in General Data Protection Regulation 7
File
templates/gdpr-user-data-page.tpl.phpView source
<?php
/**
* @file
* Renders a user's collected data.
*/
$header = [
t('Type'),
t('Value'),
];
$rows = [];
foreach ($user_data as $field => $value) {
$rows[] = [
'data' => [
$field,
$value,
],
];
}
print theme('table', [
'header' => $header,
'rows' => $rows,
]);