You are here

registration_handler_field_entity_datetime.inc in Entity Registration 8.2

Display registration open or closing dates.

File

modules/registration_views/includes/registration_handler_field_entity_datetime.inc
View source
<?php

/**
 * @file
 * Display registration open or closing dates.
 */
class registration_handler_field_entity_datetime extends views_handler_field_date {
  function render($values) {
    $alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
    if (isset($values->{$alias})) {
      $values->{$alias} = strtotime($values->{$alias});
      if ($values->{$alias} !== FALSE) {
        return parent::render($values);
      }
    }
  }

}

Classes

Namesort descending Description
registration_handler_field_entity_datetime @file Display registration open or closing dates.