Commit 33b03374 authored by alexpott's avatar alexpott

Issue #2009666 by aaronott, jiff, jeroen12345: Replace theme() with...

Issue #2009666 by aaronott, jiff, jeroen12345: Replace theme() with drupal_render() in search module.
parent 5d83ca57
......@@ -217,11 +217,15 @@ function hook_search_execute($keys = NULL, $conditions = NULL) {
$language = language_load($item->langcode);
$uri = $node->uri();
$username = array(
'#theme' => 'username',
'#account' => $node,
);
$results[] = array(
'link' => url($uri['path'], array_merge($uri['options'], array('absolute' => TRUE, 'language' => $language))),
'type' => check_plain(node_get_type_label($node)),
'title' => $node->label($item->langcode),
'user' => theme('username', array('account' => $node)),
'user' => drupal_render($username),
'date' => $node->changed,
'node' => $node,
'extra' => $extra,
......@@ -264,7 +268,10 @@ function hook_search_page($results) {
'#module' => 'my_module_name',
);
}
$output['suffix']['#markup'] = '</ol>' . theme('pager');
$pager = array(
'#theme' => 'pager',
);
$output['suffix']['#markup'] = '</ol>' . drupal_render($pager);
return $output;
}
......
......@@ -65,7 +65,10 @@ function search_extra_type_search_page($results) {
'#module' => 'search_extra_type',
);
}
$output['suffix']['#markup'] = '</ol>' . theme('pager');
$pager = array(
'#theme' => 'pager',
);
$output['suffix']['#markup'] = '</ol>' . drupal_render($pager);
return $output;
}
......
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