X-Git-Url: https://vcs.fsf.org/?p=ryf-theme.git;a=blobdiff_plain;f=ryf.theme;h=f9a7a6f40ad65a4545644e6a9480de343bf7388b;hp=fcf4fcbd3dc752214a1d8f303e5d3723d62e349a;hb=dbd9476ae5e8a4792e4a14063c5309c326577cee;hpb=1e7a45c415b9b99392c5202b7e8fac89a400ce2a diff --git a/ryf.theme b/ryf.theme index fcf4fcb..f9a7a6f 100644 --- a/ryf.theme +++ b/ryf.theme @@ -6,3 +6,19 @@ * * Place your custom PHP code in this file. */ + +/** + * Implements hook_theme(). + * + * Used to show image thumbnails in search results + * + */ +function ryf_theme($existing, $type, $theme, $path) { + return [ + 'search_result' => [ + 'variables' => ['result' => NULL, 'plugin_id' => NULL], + 'file' => 'search.pages.inc', + ], + ]; +} +