function ds_render_date_field in Display Suite 7.2
Same name and namespace in other branches
- 7 ds.module \ds_render_date_field()
Render a date field.
1 string reference to 'ds_render_date_field'
- ds_ds_fields_info in ./
ds.ds_fields_info.inc - Implements hook_ds_fields_info().
File
- ./
ds.module, line 1149 - Display Suite core functions.
Code
function ds_render_date_field($field) {
$date_format = str_replace('ds_post_date_', '', $field['formatter']);
return ds_edit_support($field['properties']['entity_render_key'], format_date($field['entity']->{$field['properties']['entity_render_key']}, $date_format), $field);
}