function gdpr_consent_entity_property_info in General Data Protection Regulation 7
Implements hook_entity_property_info().
File
- modules/
gdpr_consent/ gdpr_consent.module, line 156 - Contains hook implementations and shared functions.
Code
function gdpr_consent_entity_property_info() {
$info = array();
$properties =& $info['gdpr_consent_agreement']['properties'];
$properties['id'] = array(
'label' => t('GDPR Consent Agreement ID'),
'description' => t('The uniquie ID of the consent agreement entity.'),
'type' => 'integer',
'schema field' => 'id',
);
$properties['title'] = array(
'label' => t('Title'),
'description' => t('Title of the agreement'),
'type' => 'text',
'schema field' => 'title',
);
$properties['agreement_type'] = array(
'label' => t('Agreement Type'),
'description' => t('Whether consent is implicit or explicit. Set to "Explicit" if the user needs to explicitly agree, otherwise "Implicit'),
'type' => 'boolean',
'schema field' => 'agreement_type',
);
$properties['description'] = array(
'label' => t('Description'),
'description' => t('Text displayed to the user on the form'),
'type' => 'text',
'schema field' => 'description',
);
$properties['long_description'] = array(
'label' => t('Long Description'),
'description' => t('Text shown when the user clicks for more details'),
'type' => 'text',
'schema field' => 'long_description',
);
$properties['notes'] = array(
'label' => t('Notes'),
'description' => t('This should contain the rationale behind the agreement.'),
'type' => 'text',
'schema field' => 'notes',
);
$properties['created'] = array(
'label' => t('Created date'),
'description' => t('Date the consent agreement was created'),
'type' => 'date',
'schema field' => 'created',
);
$properties['changed'] = array(
'label' => t('Updated date'),
'description' => t('Date the consent agreement was last edited'),
'type' => 'date',
'schema field' => 'changed',
);
$properties['author_uid'] = array(
'label' => t('Authored by'),
'description' => t('The user ID of author of the Consent Agreement entity'),
'type' => 'user',
'schema field' => 'author_uid',
);
$properties['revision_uid'] = array(
'label' => t('Revised by'),
'description' => t('The user ID of author of the Consent Agreement revision'),
'type' => 'user',
'schema field' => 'revision_uid',
);
$properties['status'] = array(
'label' => t('Publishing status'),
'description' => t('A boolean indicating whether the Consent Agreement is published.'),
'type' => 'boolean',
'schema field' => 'status',
);
return $info;
}