You are here

function date_field_formatter in Date 5

Same name and namespace in other branches
  1. 5.2 date/date.module \date_field_formatter()

Implementation of hook_field_formatter().

File

./date.module, line 422
Defines a date/time field type.

Code

function date_field_formatter($field, $item, $formatter, $node) {

  // Get the complete date objects for the from and to dates in this field.
  $dates = date_field_object($field, $item);
  $dates['formatter'] = $formatter;
  return theme('date_formatter', $dates, $field, $formatter, $node);
}