function cck_time_field_info in CCK Time 7
Same name and namespace in other branches
- 6 cck_time.module \cck_time_field_info()
Implements hook_field_info().
File
- ./
cck_time.module, line 14 - Creates a time widget for CCK text fields
Code
function cck_time_field_info() {
return $info = array(
'cck_time' => array(
'label' => t('Time'),
'description' => t('Store a time of day.'),
'translatable' => 0,
'settings' => array(
'format' => 24,
'increment' => 1,
),
'instance_settings' => array(),
'default_widget' => 'cck_time_select',
'default_formatter' => 'cck_time_default',
),
);
}