function user_revision_entity_property_info_alter in User Revision 7
Same name and namespace in other branches
- 7.2 user_revision.module \user_revision_entity_property_info_alter()
Implements hook_entity_property_info_alter().
File
- ./
user_revision.module, line 236 - Enables user revision.
Code
function user_revision_entity_property_info_alter(&$info) {
$info['user']['properties']['vid'] = array(
'label' => t('Revision ID'),
'type' => 'integer',
'description' => t('The unique ID of the user\'s revision.'),
'schema field' => 'vid',
);
$info['user']['properties']['ip'] = array(
'label' => t('IP'),
'type' => 'text',
'description' => t('The user\'s ip address.'),
'schema field' => 'ip',
);
}