Projet

Général

Profil

Révision e9f59ce0

Ajouté par Assos Assos il y a plus de 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views_pdf/views_pdf_plugin_style_table.inc
164 164
        '#default_value' => isset($this->options['info'][$field]['header_style']['render']['is_html']) ? $this->options['info'][$field]['header_style']['render']['is_html'] : 1,
165 165
      );
166 166

  
167
      $form['info'][$field]['header_style']['render']['eval_before'] = array(
168
        '#type' => 'textarea',
169
        '#title' => t('PHP Code Before Output'),
170
        '#default_value' => isset($this->options['info'][$field]['header_style']['render']['eval_before']) ? $this->options['info'][$field]['header_style']['render']['eval_before'] : '',
171
      );
172

  
173
      $form['info'][$field]['header_style']['render']['eval_after'] = array(
174
        '#type' => 'textarea',
175
        '#title' => t('PHP Code After Output'),
176
        '#default_value' => isset($this->options['info'][$field]['header_style']['render']['eval_after']) ? $this->options['info'][$field]['header_style']['render']['eval_after'] : '',
177
      );
167
      if (user_access('allow php in views pdf') && VIEWS_PDF_PHP) {
168
        $form['info'][$field]['header_style']['render']['eval_before'] = array(
169
          '#type' => 'textarea',
170
          '#title' => t('PHP Code Before Output'),
171
          '#default_value' => isset($this->options['info'][$field]['header_style']['render']['eval_before']) ? $this->options['info'][$field]['header_style']['render']['eval_before'] : '',
172
        );
173
        $form['info'][$field]['header_style']['render']['bypass_eval_before'] = array(
174
          '#type' => 'checkbox',
175
          '#title' => t('Use the PHP eval function instead php_eval.'),
176
          '#description' => t("WARNING: If you don't know the risk of using eval leave as it."),
177
          '#default_value' => !empty($this->options['info'][$field]['header_style']['render']['bypass_eval_before']) ? $this->options['info'][$field]['header_style']['render']['bypass_eval_before'] : FALSE,
178
        );
179

  
180
        $form['info'][$field]['header_style']['render']['eval_after'] = array(
181
          '#type' => 'textarea',
182
          '#title' => t('PHP Code After Output'),
183
          '#default_value' => isset($this->options['info'][$field]['header_style']['render']['eval_after']) ? $this->options['info'][$field]['header_style']['render']['eval_after'] : '',
184
        );
185
        $form['info'][$field]['header_style']['render']['bypass_eval_after'] = array(
186
          '#type' => 'checkbox',
187
          '#title' => t('Use the PHP eval function instead php_eval.'),
188
          '#description' => t("WARNING: If you don't know the risk of using eval leave as it."),
189
          '#default_value' => !empty($this->options['info'][$field]['header_style']['render']['bypass_eval_after']) ? $this->options['info'][$field]['header_style']['render']['bypass_eval_after'] : FALSE,
190
        );
191
      }
178 192

  
179 193
      $form['info'][$field]['body_style']['text'] = array(
180 194
        '#type' => 'fieldset',
......
241 255
        '#default_value' => isset($this->options['info'][$field]['body_style']['render']['is_html']) ? $this->options['info'][$field]['body_style']['render']['is_html'] : 1,
242 256
      );
243 257

  
244
      $form['info'][$field]['body_style']['render']['eval_before'] = array(
245
        '#type' => 'textarea',
246
        '#title' => t('PHP Code Before Output'),
247
        '#default_value' => isset($this->options['info'][$field]['body_style']['render']['eval_before']) ? $this->options['info'][$field]['body_style']['render']['eval_before'] : '',
248
      );
249

  
250
      $form['info'][$field]['body_style']['render']['eval_after'] = array(
251
        '#type' => 'textarea',
252
        '#title' => t('PHP Code After Output'),
253
        '#default_value' => isset($this->options['info'][$field]['body_style']['render']['eval_after']) ? $this->options['info'][$field]['body_style']['render']['eval_after'] : '',
254
      );
258
      if (user_access('allow php in views pdf') && VIEWS_PDF_PHP) {
259
        $form['info'][$field]['body_style']['render']['eval_before'] = array(
260
          '#type' => 'textarea',
261
          '#title' => t('PHP Code Before Output'),
262
          '#default_value' => isset($this->options['info'][$field]['body_style']['render']['eval_before']) ? $this->options['info'][$field]['body_style']['render']['eval_before'] : '',
263
        );
264
        $form['info'][$field]['body_style']['render']['bypass_eval_before'] = array(
265
          '#type' => 'checkbox',
266
          '#title' => t('Use the PHP eval function instead php_eval.'),
267
          '#description' => t("WARNING: If you don't know the risk of using eval leave as it."),
268
          '#default_value' => !empty($this->options['info'][$field]['body_style']['render']['bypass_eval_before']) ? $this->options['info'][$field]['body_style']['render']['bypass_eval_before'] : FALSE,
269
        );
270

  
271
        $form['info'][$field]['body_style']['render']['eval_after'] = array(
272
          '#type' => 'textarea',
273
          '#title' => t('PHP Code After Output'),
274
          '#default_value' => isset($this->options['info'][$field]['body_style']['render']['eval_after']) ? $this->options['info'][$field]['body_style']['render']['eval_after'] : '',
275
        );
276
        $form['info'][$field]['body_style']['render']['bypass_eval_after'] = array(
277
          '#type' => 'checkbox',
278
          '#title' => t('Use the PHP eval function instead php_eval.'),
279
          '#description' => t("WARNING: If you don't know the risk of using eval leave as it."),
280
          '#default_value' => !empty($this->options['info'][$field]['body_style']['render']['bypass_eval_after']) ? $this->options['info'][$field]['body_style']['render']['bypass_eval_after'] : FALSE,
281
        );
282
      }
255 283

  
256 284
      $form['info'][$field]['position']['width'] = array(
257 285
        '#type' => 'textfield',

Formats disponibles : Unified diff