You are here

function ds_render_date_field in Display Suite 7

Same name and namespace in other branches
  1. 7.2 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 1301
Display Suite core functions.

Code

function ds_render_date_field($field) {
  $date_format = str_replace('ds_post_date_', '', $field['formatter']);
  return format_date($field['entity']->created, $date_format);
}