commit 38d2333119686d8822e37a8a57bf76b14f50d05a Author: Stefan Topfstedt Date: Tue Apr 16 00:16:02 2013 -0400 1963476_new_changes diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 7e3c395..3f8ce42 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -386,7 +386,7 @@ function template_preprocess_datetime_wrapper(&$variables) { $element = $variables['element']; // If the element is required, a required marker is appended to the label. - $required = ''; + $required = array(); if (!empty($element['#required'])) { $required = array( '#theme' => 'form_required_marker', diff --git a/core/modules/datetime/templates/datetime-wrapper.html.twig b/core/modules/datetime/templates/datetime-wrapper.html.twig index 3510c59..a105a50 100644 --- a/core/modules/datetime/templates/datetime-wrapper.html.twig +++ b/core/modules/datetime/templates/datetime-wrapper.html.twig @@ -9,7 +9,7 @@ * - title: The title of the form element. * - attributes: Remaining HTML attributes for the form wrapper. * - required: A renderable required marker if the form element is required, - * otherwise a blank string. + * otherwise an empty array. * * @see template_preprocess() * @see template_preprocess_datetime_wrapper()