From 9236b3f7eec1d1f523e2836b0c4499c5ed830a2d Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 17 Jun 2013 22:58:28 +0200 Subject: [PATCH] Issue #1939080 by joelpittet: Convert theme_datetime() to Twig. --- core/includes/theme.inc | 36 ------------------- .../system/templates/datetime.html.twig | 5 +-- 2 files changed, 3 insertions(+), 38 deletions(-) diff --git a/core/includes/theme.inc b/core/includes/theme.inc index a07cae3cc87..c19db2646d0 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1591,42 +1591,6 @@ function template_preprocess_datetime(&$variables) { $variables['attributes'] = new Attribute($variables['attributes']); } -/** - * Returns HTML for a date / time. - * - * @param $variables - * An associative array containing: - * - timestamp: (optional) A UNIX timestamp for the datetime attribute. If - * the datetime cannot be represented as a UNIX timestamp, use a valid - * datetime attribute value in $variables['attributes']['datetime']. - * - text: (optional) The content to display within the