source: spip-zone/_plugins_/forum_sectorise/forumsectorise_pipelines.php @ 49011

Last change on this file since 49011 was 49011, checked in by yffic@…, 10 years ago

Changement de nom du plugin (Maïeul)

File size: 431 bytes
Line 
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3
4function forumsectorise_pre_insertion($flux) {
5        $conf_forumsectorise = lire_config('forumsectorise');
6        if (($flux['args']['table'] == 'spip_articles') &&
7                 ($conf_forumsectorise['id_secteur'] > 0) &&
8                 ($flux['data']['id_secteur'] == $conf_forumsectorise['id_secteur'])) {
9                $flux['data']['accepter_forum'] = $conf_forumsectorise['type'];
10        }
11        return $flux;
12}
13
14
15?>
Note: See TracBrowser for help on using the repository browser.