function _fraction_entity_test_default_instances in Fraction 7
2 calls to _fraction_entity_test_default_instances()
- 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 128
Code
function _fraction_entity_test_default_instances() {
return array(
'fraction_field' => array(
'field_name' => 'fraction_field',
'label' => t('Fraction Field'),
'type' => 'fraction',
'widget' => array(
'type' => 'fraction_decimal',
),
'display' => array(),
'entity_type' => 'fraction_entity_test',
'bundle' => 'fraction_entity_test_bundle',
),
);
}