function date_field_formatter_info in Date 6
Same name and namespace in other branches
- 5.2 date/date.module \date_field_formatter_info()
- 5 date.module \date_field_formatter_info()
- 6.2 date/date.module \date_field_formatter_info()
- 7.3 date.field.inc \date_field_formatter_info()
- 7 date.field.inc \date_field_formatter_info()
- 7.2 date.field.inc \date_field_formatter_info()
Implementation of hook_field_formatter_info().
File
- date/
date.module, line 101 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_field_formatter_info() {
return array(
'default' => array(
'label' => t('Default'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'long' => array(
'label' => t('Long'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'medium' => array(
'label' => t('Medium'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'short' => array(
'label' => t('Short'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'iso' => array(
'label' => t('ISO'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'timestamp' => array(
'label' => t('Timestamp'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'feed' => array(
'label' => t('Feed'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'ical' => array(
'label' => t('iCal'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'format_interval' => array(
'label' => t('As Time Ago'),
'field types' => array(
'date',
'datestamp',
'datetime',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
);
}