From 8f32d4e98b6b60424f2cbc23daac0ee6c51a2d3b Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 15 Jul 2014 20:02:50 +0200 Subject: [PATCH] fixed a message again --- materio_search_api.module | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/materio_search_api.module b/materio_search_api.module index b6210aea..c83e866a 100755 --- a/materio_search_api.module +++ b/materio_search_api.module @@ -774,24 +774,27 @@ function template_preprocess_materio_search_api_results(array &$vars) { if(isset($results['breves count'])){ // for free users $vars['perfascard'] = true; - $vars['search_performance'] = format_plural( + $perfoutput = format_plural( $results['breves count'], 'The search found 1 news ', 'The search found @count news ' ); - $vars['search_performance'] .= format_plural( + $perfoutput .= format_plural( $vars['result_count'] - $results['breves count'], 'with 1 associated matter.', 'with @count associated matters.' ); - $vars['search_performance'] .= format_plural( + $perfoutput .= '
'; + $perfoutput .= format_plural( $results['could results']['result count'], ' You could have found 1 result with a ', ' You could have found @count results with a ' ); - $vars['search_performance'] .= l(t('full access to materiO\'.'), 'node/11187'); + $perfoutput .= l(t('full access to materiO\'.'), 'node/11187'); - $vars['search_performance'] .= l(t('Pricing'), 'node/11187', array("attributes"=>array("class"=>array('button')))); + $perfoutput .= l(t('Pricing'), 'node/11187', array("attributes"=>array("class"=>array('button')))); + + $vars['search_performance'] = $perfoutput; }else{ // for members