3 if (!defined('_ECRIRE_INC_VERSION')) {
7 include_spip('inc/rechercher');
8 include_spip('base/abstract_sql');
10 function inclure_liste_recherche_par_id($table, $id, $statut, $env) {
11 if (is_string($env)) {
12 $env = unserialize($env);
14 $env[id_table_objet($table)] = $id;
16 $env['statut'] = $statut;
18 unset($env['recherche']);
20 return recuperer_fond("prive/objets/liste/$table", $env);