Commit f6f04788 authored by alexpott's avatar alexpott

Issue #2008986 by markie: Replace theme() with drupal_render() in datetime module.

parent b6eb3d4c
......@@ -373,7 +373,14 @@ function theme_datetime_wrapper($variables) {
$output = '';
// If the element is required, a required marker is appended to the label.
$required = !empty($element['#required']) ? theme('form_required_marker', array('element' => $element)) : '';
$required = '';
if(!empty($element['#required'])) {
$form_required_marker = array(
'#theme' => 'form_required_marker',
'#element' => $element,
);
$required = drupal_render($form_required_marker);
}
if (!empty($element['#title'])) {
$output .= '<h4 class="label">' . t('!title!required', array('!title' => $element['#title'], '!required' => $required)) . '</h4>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment