You are here

function gdpr_tasks_field_info_alter in General Data Protection Regulation 7

Implements hook_field_info_alter().

File

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

Code

function gdpr_tasks_field_info_alter(&$field_info) {
  $types = array(
    'datetime',
    'date',
    'datestampe',
    'name',
    'addressfield',
    'commerce_price',
  );
  foreach ($types as $type) {
    if (isset($field_info[$type])) {
      $field_info[$type]['property_callbacks'][] = 'gdpr_tasks_field_metatdata_property_info_alter';
    }
  }
}