source: spip-zone/_plugins_/vocabulaire/trunk/vocabulaire_pipelines.php

Last change on this file was 96901, checked in by p@…, 3 years ago

Utiliser le nouveau pipeline levenshtein_calculer

File size: 290 bytes
Line 
1<?php
2
3if (!defined('_ECRIRE_INC_VERSION')) {
4        return;
5}
6
7function vocabulaire_levenshtein_calculer($flux) {
8        $get_lev = sql_allfetsel('mot', 'spip_vocabulaires', 'SOUNDEX(mot) = SOUNDEX('.sql_quote($flux['term']).')');
9        $flux['mot'] = array_merge($flux['mot'], $get_lev);
10        return $flux;
11}
Note: See TracBrowser for help on using the repository browser.