function eck_eck_default_properties in Entity Construction Kit (ECK) 7.3
Same name and namespace in other branches
- 7.2 eck.module \eck_eck_default_properties()
Implements hook_eck_default_properties().
File
- ./
eck.module, line 91
Code
function eck_eck_default_properties() {
$default_properties = array();
$default_properties['title'] = array(
'label' => "Title",
'type' => "text",
'behavior' => 'title',
);
$default_properties['uid'] = array(
'label' => "Author",
'type' => "integer",
'behavior' => 'author',
);
$default_properties['created'] = array(
'label' => "Created",
'type' => "integer",
'behavior' => 'created',
);
$default_properties['changed'] = array(
'label' => "Changed",
'type' => "integer",
'behavior' => 'changed',
);
$default_properties['language'] = array(
'label' => "Entity language",
'type' => "language",
'behavior' => 'language',
);
// Include uuid as default property if module_exists.
if (module_exists('uuid')) {
$default_properties['uuid'] = array(
'label' => "UUID",
'type' => "text",
'behavior' => 'uuid',
);
}
return $default_properties;
}