function date_old_formatter_get_settings in Date 7
Same name and namespace in other branches
- 7.3 date.field.inc \date_old_formatter_get_settings()
- 7.2 date.field.inc \date_old_formatter_get_settings()
1 call to date_old_formatter_get_settings()
- date_content_migrate_instance_alter in ./
date.field.inc - Implements hook_content_migrate_instance_alter().
File
- ./
date.field.inc, line 531 - Field hooks to implement a date field.
Code
function date_old_formatter_get_settings($field_name, $type_name, $context) {
$options = array();
$value = 'date:' . $type_name . ':' . $context . ':' . $field_name;
$options['show_repeat_rule'] = variable_get($value . '_show_repeat_rule', 'show');
$options['multiple_number'] = variable_get($value . '_multiple_number', '');
$options['multiple_from'] = variable_get($value . '_multiple_from', '');
$options['multiple_to'] = variable_get($value . '_multiple_to', '');
$options['fromto'] = variable_get($value . '_fromto', 'both');
return $options;
}