[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / prive / squelettes / contenu / recherche_fonctions.php
1 <?php
2
3 if (!defined('_ECRIRE_INC_VERSION')) {
4 return;
5 }
6
7 include_spip('inc/rechercher');
8 include_spip('base/abstract_sql');
9
10 function inclure_liste_recherche_par_id($table, $id, $statut, $env) {
11 if (is_string($env)) {
12 $env = unserialize($env);
13 }
14 $env[id_table_objet($table)] = $id;
15 if ($statut) {
16 $env['statut'] = $statut;
17 }
18 unset($env['recherche']);
19
20 return recuperer_fond("prive/objets/liste/$table", $env);
21 }