diff --git a/core/modules/search/search.pages.inc b/core/modules/search/search.pages.inc index e2477ec..36c313d 100644 --- a/core/modules/search/search.pages.inc +++ b/core/modules/search/search.pages.inc @@ -98,6 +98,9 @@ function template_preprocess_search_results(&$variables) { '#theme' => 'pager', '#tags' => NULL, ); + // @todo Revisit where this help text is added, see also + // http://drupal.org/node/1918856. + $variables['help'] = search_help('search#noresults', drupal_help_arg()); $variables['theme_hook_suggestions'][] = 'search_results__' . $variables['module']; } diff --git a/core/modules/search/templates/search-results.html.twig b/core/modules/search/templates/search-results.html.twig index 1b1e370..81b35d7 100644 --- a/core/modules/search/templates/search-results.html.twig +++ b/core/modules/search/templates/search-results.html.twig @@ -14,6 +14,7 @@ * - search_results: All results as it is rendered through search-result.tpl.php * - module: The machine-readable name of the module (tab) being searched, such * as 'node' or 'user' + * - help: HTML for help text to display when no results are found. * * @see template_preprocess() * @see template_preprocess_search_results() @@ -28,5 +29,5 @@ {{ pager }} {% else %}