function gdpr_fields_entity_property_info_alter in General Data Protection Regulation 7
Implements hook_entity_property_info_alter().
File
- modules/gdpr_fields/ gdpr_fields.module, line 282 
- Module file for the GDPR Fields module.
Code
function gdpr_fields_entity_property_info_alter(&$info) {
  // If user.picture is not defined, do our best to define it.
  if (!isset($info['user']['properties']['picture'])) {
    $info['user']['properties']['picture'] = array(
      'label' => t('Picture'),
      'description' => t("The users's uploaded picture."),
      'type' => entity_get_info('file') ? 'file' : 'integer',
      'schema field' => 'picture',
    );
  }
}