From f4ae3c9055407b5d7853100afa91c194bef97cc3 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Mon, 7 Jul 2014 12:49:40 +0200 Subject: [PATCH] fixed results summary --- materio_search_api.module | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/materio_search_api.module b/materio_search_api.module index 1132d256..967e04a3 100755 --- a/materio_search_api.module +++ b/materio_search_api.module @@ -805,13 +805,19 @@ function template_preprocess_materio_search_api_results(array &$vars) { // 'The search found @count results ' // ) - $vars['search_performance'] = t('The search found @count result(s) with keywords @keys. @mat materials and @new news.', array( + $vars['search_performance'] = t('The search found @count result(s) with keywords @keys.', array( "@count"=>$vars['result_count'], - "@keys"=>$vars['keywords'], - "@mat"=>4, - "@new"=>7) + "@keys"=>$vars['keywords']) ); + // TODO indicate how many materials and how many news + // $vars['search_performance'] = t('The search found @count result(s) with keywords @keys. @mat materials and @new news.', array( + // "@count"=>$vars['result_count'], + // "@keys"=>$vars['keywords'], + // "@mat"=>4, + // "@new"=>7) + // ); + } //dsm($vars, '$vars');