You are here

function date_field_formatter_info in Date 5

Same name and namespace in other branches
  1. 5.2 date/date.module \date_field_formatter_info()
  2. 6.2 date/date.module \date_field_formatter_info()
  3. 6 date/date.module \date_field_formatter_info()
  4. 7.3 date.field.inc \date_field_formatter_info()
  5. 7 date.field.inc \date_field_formatter_info()
  6. 7.2 date.field.inc \date_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./date.module, line 378
Defines a date/time field type.

Code

function date_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('Default'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'long' => array(
      'label' => t('Long'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'medium' => array(
      'label' => t('Medium'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'short' => array(
      'label' => t('Short'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'iso' => array(
      'label' => t('ISO'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'timestamp' => array(
      'label' => t('Timestamp'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'feed' => array(
      'label' => t('Feed'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'ical' => array(
      'label' => t('iCal'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
    'format_interval' => array(
      'label' => t('As Time Ago'),
      'field types' => array(
        'date',
        'datestamp',
      ),
    ),
  );
}