function efq_views_test_entity_property_info_alter in EntityFieldQuery Views Backend 7
Implements hook_entity_property_info().
File
- tests/
efq_views_test.module, line 40 - Provides info about the efq_views test entity.
Code
function efq_views_test_entity_property_info_alter(&$info) {
$properties =& $info['efq_views_test']['properties'];
$properties['language'] = array(
'type' => 'token',
'setter callback' => 'entity_property_verbatim_set',
'options list' => 'entity_metadata_language_list',
'schema field' => 'language',
) + $properties['language'];
$properties['test_boolean']['type'] = 'boolean';
$properties['test_decimal']['type'] = 'decimal';
$properties['test_decimal']['getter callback'] = 'efq_views_test_decimal';
$properties['test_duration']['type'] = 'duration';
$properties['test_date']['type'] = 'date';
}