Skip to content
Snippets Groups Projects
Commit 1fe6c7ad authored by catch's avatar catch
Browse files

Issue #2007124 by pplantinga, anirudha_3083, martin107, InternetDevels:...

Issue #2007124 by pplantinga, anirudha_3083, martin107, InternetDevels: Replace theme() with drupal_render() in authorize.php.
parent 59c4e229
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -119,7 +119,11 @@ function authorize_access_allowed() {
drupal_set_message($results['page_message']['message'], $results['page_message']['type']);
}
$output = theme('authorize_report', array('messages' => $results['messages']));
$authorize_report = array(
'#theme' => 'authorize_report',
'#messages' => $results['messages'],
);
$output = drupal_render($authorize_report);
$links = array();
if (is_array($results['tasks'])) {
......@@ -132,7 +136,12 @@ function authorize_access_allowed() {
));
}
$output .= theme('item_list', array('items' => $links, 'title' => t('Next steps')));
$item_list = array(
'#theme' => 'item_list',
'#items' => $links,
'#title' => t('Next steps'),
);
$output .= drupal_render($item_list);
}
// If a batch is running, let it run.
elseif ($request->query->has('batch')) {
......@@ -157,5 +166,10 @@ function authorize_access_allowed() {
if (!empty($output)) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('maintenance_page', array('content' => $output, 'show_messages' => $show_messages));
$maintenance_page = array(
'#theme' => 'maintenance_page',
'#content' => $output,
'#show_messages' => $show_messages,
);
print drupal_render($maintenance_page);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment