You are here

function partial_date_txt_override_options in Partial Date 7

2 calls to partial_date_txt_override_options()
_partial_date_field_formatter_settings_form in ./partial_date.pages.inc
Implements hook_field_formatter_settings_form().
_partial_date_field_formatter_settings_summary in ./partial_date.admin.inc
Implements hook_field_formatter_settings_summary().

File

./partial_date.module, line 726
Defines a date element that allows for any combination of date granularity settings.

Code

function partial_date_txt_override_options() {
  return array(
    'none' => t('Use date only', array(), array(
      'context' => 'datetime',
    )),
    'short' => t('Use short description', array(), array(
      'context' => 'datetime',
    )),
    'long' => t('Use long description', array(), array(
      'context' => 'datetime',
    )),
    'long_short' => t('Use long or short description', array(), array(
      'context' => 'datetime',
    )),
    'short_long' => t('Use short or long description', array(), array(
      'context' => 'datetime',
    )),
  );
}