function eck_property_types in Entity Construction Kit (ECK) 7.2
The different property types.
1 call to eck_property_types()
- eck__properties__form in ./
eck.properties.inc - Properties form callback.
File
- ./
eck.properties.inc, line 26 - Handles properties attached to entites created through ECK.
Code
function eck_property_types() {
// All types: serial, int, float, numeric, varchar, char, text,
// blob, datetime.
$default_types = array(
'text' => t('Text'),
'integer' => t('Integer'),
'decimal' => t('Decimal'),
'positive_integer' => t('Unsigned Integer'),
'language' => t('Language'),
);
$module_default_types = module_invoke_all('eck_property_types');
$default_types = array_merge($default_types, $module_default_types);
drupal_alter('eck_property_types', $default_types);
// @todo As modules start to implement ECK hooks, this should be removed.
if (module_exists('uuid') && !array_key_exists('uuid', $default_types)) {
$default_types['uuid'] = t('UUID');
}
return $default_types;
}