You are here

function gdpr_star_value in General Data Protection Regulation 7

Censors a string by replacing all characters with asterisks.

Parameters

string $value: The value to censor.

Return value

string The censored value.

1 call to gdpr_star_value()
gdpr_get_user_data in ./gdpr.module
Gets all collected data for the given user.

File

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

Code

function gdpr_star_value($value) {
  return str_repeat("*", strlen($value));
}