[PLUGINS] +set de base
[lhc/web/www.git] / www / plugins / odt2spip_30 / odt2spip_pipelines.php
1 <?php
2 /**
3 * Créer un article à partir d'un fichier au format odt
4 *
5 * @author cy_altern
6 * @license GNU/LGPL
7 *
8 * @package plugins
9 * @subpackage odt2spip
10 * @category import
11 *
12 *
13 */
14 if (!defined("_ECRIRE_INC_VERSION")) return;
15
16 /**
17 * Ajout une boite de creation d'un article à partir d'un fichier odt
18 * dans la colonne gauche des pages exec=rubrique
19 *
20 * @internal à l'aide du pipeline {@link affiche_gauche}
21 * @param Array $flux Le code de la colonne gauche
22 * @return Array Le code modifié
23 */
24 function odt2spip_affiche_gauche($flux){
25 if ($flux['args']['exec']=='rubrique'
26 AND $id_rubrique = $flux['args']['id_rubrique']
27 AND autoriser('publierdans','rubrique',$flux['args']['id_rubrique'])){
28 $out = recuperer_fond('formulaires/odt2spip', array('id_rubrique' => $id_rubrique));
29 $flux['data'] .= $out;
30 }
31 return $flux;
32 }
33
34 ?>