You are here

function timefield_field_formatter_info in Timefield 7

Implements hook_field_formatter_info().

2 calls to timefield_field_formatter_info()
timefield_field_load in ./timefield.module
Implements hook_field_load().
timefield_field_widget_form in ./timefield.module
Implements hook_field_widget_form().

File

./timefield.module, line 310
Defines a Field API field for time

Code

function timefield_field_formatter_info() {
  return array(
    'timefield_default' => array(
      'label' => t('List of Times'),
      'field types' => array(
        'timefield',
      ),
      'settings' => array(
        'display_format' => array(
          'separator' => ':',
          'period_separator' => '',
          'period' => 'a',
          'hour' => 'g',
          'minute' => 'i',
        ),
      ),
    ),
    'timefield_duration' => array(
      'label' => t('Duration'),
      'field types' => array(
        'timefield',
      ),
      'settings' => array(
        'duration_format' => 'minutes',
        'display_format' => array(
          'separator' => ':',
          'period_separator' => '',
          'period' => 'a',
          'hour' => 'g',
          'minute' => 'i',
        ),
      ),
    ),
    'timefield_weekly_summary_minical' => array(
      'label' => t('Mini Calendar'),
      'field types' => array(
        'timefield',
      ),
      'settings' => array(
        'display_format' => array(
          'separator' => ':',
          'period_separator' => '',
          'period' => 'a',
          'hour' => 'g',
          'minute' => 'i',
        ),
        'column_format' => array(
          'separator' => ':',
          'period_separator' => '',
          'period' => 'a',
          'hour' => 'g',
          'minute' => 'i',
        ),
        'first_day' => 'mon',
        'absolute_start' => '8:00 am',
        'absolute_end' => '10:00 pm',
        'range' => 120,
        'adjust_range' => FALSE,
      ),
    ),
  );
}