function hms_field_field_formatter_info in HMS Field 7
Implements hook_field_formatter_info().
File
- ./
hms_field.module, line 127 - Provides an hms_field functionality.
Code
function hms_field_field_formatter_info() {
return array(
'hms_default_formatter' => array(
'label' => t('Hours Minutes and Seconds'),
'field types' => array(
'hms_field',
),
'settings' => array(
'format' => 'h:mm',
'leading_zero' => TRUE,
),
),
'hms_natural_language_formatter' => array(
'label' => t('Natural language'),
'field types' => array(
'hms_field',
),
'settings' => array(
'display_formats' => array(
'w',
'd',
'h',
'm',
's',
),
'separator' => ', ',
'last_separator' => ' and ',
),
),
);
}