3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined('_ECRIRE_INC_VERSION')) return;
15 include_spip('inc/actions');
17 // http://doc.spip.org/@exec_grouper_mots_dist
18 function exec_grouper_mots_dist()
20 exec_grouper_mots_args(intval(_request('id_groupe')));
23 // http://doc.spip.org/@exec_grouper_mots_args
24 function exec_grouper_mots_args($id_groupe)
26 $cpt = sql_countsel("spip_mots", "id_groupe=$id_groupe");
29 include_spip('inc/minipres');
31 } else ajax_retour('') ;
33 $grouper_mots = charger_fonction('grouper_mots', 'inc');
34 ajax_retour($grouper_mots($id_groupe, $cpt));