function timefield_field_info in Timefield 7
Implements hook_field_info().
File
- ./
timefield.module, line 11 - Defines a Field API field for time
Code
function timefield_field_info() {
$fields = array();
$fields['timefield'] = array(
'label' => t('Time Field'),
'description' => t('A field type for storing times, with an optional end time and weekday repeat schedule.'),
'settings' => array(
'totime' => '',
'weekly_summary' => FALSE,
'weekly_summary_with_label' => FALSE,
),
'instance_settings' => array(
'disable_plugin' => FALSE,
'input_format' => array(
'separator' => ':',
'showLeadingZero' => FALSE,
'showMinutesLeadingZero' => TRUE,
'showPeriod' => TRUE,
'periodSeparator' => '',
'showHours' => TRUE,
'showMinutes' => TRUE,
'am_text' => 'AM',
'pm_text' => 'PM',
'minute_interval' => 5,
'showCloseButton' => FALSE,
'closeButtonText' => 'Done',
'showNowButton' => FALSE,
'nowButtonText' => 'Now',
'showDeselectButton' => FALSE,
'deselectButtonText' => 'Deselect',
'myPosition' => 'left top',
'atPosition' => 'left bottom',
),
),
'default_widget' => 'timefield_standard',
'default_formatter' => 'timefield_default',
'property_type' => 'timefield',
'property_callbacks' => array(
'timefield_property_info_callback',
),
);
return $fields;
}