You are here

function tzfield_field_formatter_info in Time Zone Field 7

Same name and namespace in other branches
  1. 6 tzfield.module \tzfield_field_formatter_info()

Implements hook_field_formatter_info().

File

./tzfield.module, line 80
Defines a time zone field type.

Code

function tzfield_field_formatter_info() {
  return array(
    'tzfield_default' => array(
      'label' => 'Time zone name',
      'field types' => array(
        'tzfield',
      ),
    ),
    'tzfield_date' => array(
      'label' => 'Formatted current date',
      'field types' => array(
        'tzfield',
      ),
      'settings' => array(
        'format' => 'T',
      ),
    ),
  );
}