You are here

function gdpr_tasks_entity_property_info_alter in General Data Protection Regulation 7

Implements hook_entity_property_info_alter().

File

modules/gdpr_tasks/gdpr_tasks.module, line 741
Module file for the GDPR Tasks module.

Code

function gdpr_tasks_entity_property_info_alter(&$info) {

  // If user.picture is not defined, do our best to define it.
  if (isset($info['user']['properties']['roles'])) {
    $info['user']['properties']['roles']['gdpr sars callback'] = 'gdpr_tasks_sars_callback_user_roles';
  }
}