From 95fc0262444449473967466081e3f3ee03afc4f4 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 19 Jun 2013 22:37:17 +0200 Subject: [PATCH] Issue #2009664 by esunger, jeroen12345, aaronott, hussainweb: Replace theme() with drupal_render() in rdf module. --- core/modules/rdf/rdf.module | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 3ae6ff51506..179e644992c 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -461,7 +461,13 @@ function rdf_process(&$variables, $hook) { 'variable_name' => $variable_name, 'variables' => $variables, ); - $variables[$variable_name] = theme('rdf_template_variable_wrapper', array('content' => $variables[$variable_name], 'attributes' => $attributes, 'context' => $context)); + $rdf_template_variable_wrapper = array( + '#theme' => 'rdf_template_variable_wrapper', + '#content' => $variables[$variable_name], + '#attributes' => $attributes, + '#context' => $context, + ); + $variables[$variable_name] = drupal_render($rdf_template_variable_wrapper); } } // Handles additional attributes about a template entity that for RDF parsing @@ -472,7 +478,11 @@ function rdf_process(&$variables, $hook) { if (!isset($variables['content']['#prefix'])) { $variables['content']['#prefix'] = ''; } - $variables['content']['#prefix'] = theme('rdf_metadata', array('metadata' => $variables['rdf_metadata_attributes'])) . $variables['content']['#prefix']; + $rdf_metadata = array( + '#theme' => 'rdf_metadata', + '#metadata' => $variables['rdf_metadata_attributes'], + ); + $variables['content']['#prefix'] = drupal_render($rdf_metadata) . $variables['content']['#prefix']; } }