summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-06-19 20:37:17 (GMT)
committerAlex Pott2013-06-19 20:49:23 (GMT)
commit95fc0262444449473967466081e3f3ee03afc4f4 (patch)
tree5a3ef1d37291f2d35307e26ce6b1b933a0b9179b
parent0e903bd8e142e568a8b1ac0b08929ff0735cc987 (diff)
Issue #2009664 by esunger, jeroen12345, aaronott, hussainweb: Replace theme() with drupal_render() in rdf module.
-rw-r--r--core/modules/rdf/rdf.module14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module
index 3ae6ff5..179e644 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'];
}
}