function certificate_entity_property_info_alter in Certificate 7.3
Implements hook_entity_property_info_alter().
Define our special schema fields and relationships.
File
- ./
certificate.module, line 1019 - Certificate module.
Code
function certificate_entity_property_info_alter(&$info) {
$info['certificate_snapshot']['properties']['cid']['type'] = 'certificate';
$info['certificate_snapshot']['properties']['uid']['type'] = 'user';
$info['certificate_snapshot']['properties']['nid']['type'] = 'node';
$info['certificate_snapshot']['properties']['date']['type'] = 'date';
$info['certificate_snapshot']['properties']['snapshot']['type'] = 'text';
}