function _fraction_entity_test_default_fields in Fraction 7
2 calls to _fraction_entity_test_default_fields()
- fraction_entity_test_enable in tests/
fraction_entity_test/ fraction_entity_test.install - Implements hook_enable().
- fraction_entity_test_uninstall in tests/
fraction_entity_test/ fraction_entity_test.install - Implements hook_uninstall().
File
- tests/
fraction_entity_test/ fraction_entity_test.install, line 116
Code
function _fraction_entity_test_default_fields() {
return array(
'fraction_field' => array(
'field_name' => 'fraction_field',
'type' => 'fraction',
'cardinality' => 1,
'entity_types' => array(
'fraction_entity_test',
),
'translatable' => FALSE,
),
);
}