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

Last change on this file since 83929 was 83929, checked in by p@…, 5 years ago

Merge branch 'master' of ssh://git.spip.org:/_plugins_/dompdf

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