You are here

function date_ap_style_field_formatter_info in AP Style Date 7

Implements hook_field_formatter_info().

File

./date_ap_style.module, line 82
Formats dates and times to use "AP" Style.

Code

function date_ap_style_field_formatter_info() {
  return array(
    'date_ap_style' => array(
      'label' => t('AP Style Date'),
      'description' => t('Displays a date as AP Style.'),
      'field types' => array(
        'date',
        'datestamp',
        'datetime',
      ),
      'settings' => array(
        'date_ap_style_output' => variable_get('date_ap_style_defaults', array(
          'use_today' => 0,
          'cap_today' => 0,
          'use_dow' => 0,
          'use_year' => 0,
          'show_time' => 0,
          'cap_noon' => 0,
          'use_all_day' => 0,
          'date_time' => 0,
        )),
      ),
    ),
  );
}