source: spip-zone/_plugins_/mnogosearch/mnogo_mes_fonctions.php @ 28930

Last change on this file since 28930 was 3873, checked in by cedric@…, 15 years ago

un filtre de nettoyage pour le résumé de mnogosearch

File size: 548 bytes
Line 
1<?php
2include_spip('base/mnogo_base');
3
4function balise_MNOGO_RESUME_RESULTATS_dist($p) {
5        $p->code = "isset(\$GLOBALS['mnogo_resultats_synthese']['MNOGO_RESUME_RESULTATS'])?\$GLOBALS['mnogo_resultats_synthese']['MNOGO_RESUME_RESULTATS']:''";
6        return $p;
7}
8function balise_MNOGO_TOTAL_dist($p) {
9        $p->code = "isset(\$GLOBALS['mnogo_resultats_synthese']['MNOGO_TOTAL'])?\$GLOBALS['mnogo_resultats_synthese']['MNOGO_TOTAL']:''";
10        return $p;
11}
12
13function mnogo_nettoyer_resume($texte){
14        return preg_replace('/\s+[a-z]*\s*:\s*0\s*,/is',' ',$texte);
15}
16?>
Note: See TracBrowser for help on using the repository browser.