You are here

function newsletter_handler_field_datetime::render in Newsletter 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field_date::render

File

includes/views/handlers/newsletter_handler_field_datetime.inc, line 13
Views handler for newsletter date SQL fields.

Class

newsletter_handler_field_datetime
Format an SQL date value to a UNIX timestamp before rendering.

Code

function render($values) {
  $values->{$this->field_alias} = strtotime($values->{$this->field_alias});

  // Render the date using the normal date handler
  return parent::render($values);
}