3 if (!defined("_ECRIRE_INC_VERSION")) return;
6 * Moderation des forums specifique a un article
7 * @param int $id_objet identifiant de l'article
8 * @return string : "non", "pos"(teriori), "pri"(ori), "abo"(nnement)
10 function inc_article_accepter_forums_publics_dist($id_objet) {
11 $accepter_forum = $GLOBALS['meta']["forums_publics"];
12 $art_accepter_forum = sql_getfetsel('accepter_forum', 'spip_articles', array(
13 "id_article = ". intval($id_objet)
15 if ($art_accepter_forum) {
16 $accepter_forum = $art_accepter_forum;
18 return substr($accepter_forum, 0, 3);