You are here

function gdpr_collected_user_data in General Data Protection Regulation 7

Implements a page callback to render a user's GDPR data collection page.

Parameters

\stdClass $user: The user entity.

Return value

string The rendered page.

1 string reference to 'gdpr_collected_user_data'
gdpr_menu in ./gdpr.module
Implements hook_menu().

File

./gdpr.module, line 273
Contains hook implementations and shared functions.

Code

function gdpr_collected_user_data(\stdClass $user) {
  drupal_set_title(t('Data stored about you'));
  $user_data = gdpr_get_user_data($user);
  $output = theme('user_data_page', [
    'user_data' => $user_data,
  ]);
  return $output;
}