You are here

function gdpr_consent_field_info in General Data Protection Regulation 7

Implements hook_field_info().

Provides a user consent field type.

File

modules/gdpr_consent/gdpr_consent.module, line 299
Contains hook implementations and shared functions.

Code

function gdpr_consent_field_info() {
  return array(
    'gdpr_user_consent' => array(
      'label' => t('GDPR Consent'),
      'description' => t('Stores user consent for a particular agreement'),
      'default_widget' => 'gdpr_consent_widget',
      'default_formatter' => 'gdpr_consent_formatter',
      'property_type' => 'struct',
      'property_callbacks' => array(
        'gdpr_consent_field_gdpr_user_consent_property_callback',
      ),
    ),
  );
}