source: spip-zone/_plugins_/dompdf/trunk/dompdf_pipelines.php

Last change on this file was 105639, checked in by p@…, 3 years ago

PSR SPIP

  • Property svn:eol-style set to native
File size: 716 bytes
Line 
1<?php
2
3if (!defined('_ECRIRE_INC_VERSION')) {
4        return;
5}
6
7/**
8 * Ajouter le cadre DOMPDF dans formidable
9 *
10 * @access public
11 */
12function dompdf_affiche_gauche($flux) {
13
14        if ($flux['args']['exec'] == 'formulaires_reponse') {
15                $url_action = generer_action_auteur('exporter_reponse_formidable', intval($flux['args']['id_formulaires_reponse']));
16                $flux['data'] .= dompdf_cadre($url_action, _T('dompdf:pdf'), _T('dompdf:export'));
17        }
18
19        if ($flux['args']['exec'] == 'formulaires_reponses') {
20                $url_action = generer_action_auteur('exporter_reponses_formidable', intval($flux['args']['id_formulaire']));
21                $flux['data'] .= dompdf_cadre($url_action, _T('dompdf:pdf'), _T('dompdf:export_reponses'));
22        }
23
24        return $flux;
25}
Note: See TracBrowser for help on using the repository browser.