3 * Créer un article à partir d'un fichier au format odt
14 if (!defined("_ECRIRE_INC_VERSION")) return;
17 * Ajout une boite de creation d'un article à partir d'un fichier odt
18 * dans la colonne gauche des pages exec=rubrique
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é
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;