You are here

function date_formatter_get_settings in Date 6.2

Same name and namespace in other branches
  1. 7 date.install \date_formatter_get_settings()
3 calls to date_formatter_get_settings()
theme_date_display_combination in date/date.theme
Theme from/to date combination in the view.
theme_date_format_interval in date/date.theme
Theme a format interval for a date element
_date_formatter_settings in date/date_admin.inc
Formatter settings.

File

date/date.module, line 851
Defines date/time field types for the Content Construction Kit (CCK).

Code

function date_formatter_get_settings($field_name, $type_name, $context) {
  $options = array();
  $value = 'date:' . $type_name . ':' . $context . ':' . $field_name;
  $options['repeat']['show_repeat_rule'] = variable_get($value . '_show_repeat_rule', 'show');
  $options['multiple']['multiple_number'] = variable_get($value . '_multiple_number', '');
  $options['multiple']['multiple_from'] = variable_get($value . '_multiple_from', '');
  $options['multiple']['multiple_to'] = variable_get($value . '_multiple_to', '');
  $options['fromto']['fromto'] = variable_get($value . '_fromto', 'both');
  return $options;
}