Révision e9f59ce0
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/sites/all/modules/views_pdf/views_pdf_plugin_row_fields.inc | ||
---|---|---|
264 | 264 |
'#description' => t('Specify here the minimal space, which is needed on the page, that the content is placed on the page.'), |
265 | 265 |
'#default_value' => isset($this->options['formats'][$field]['render']['minimal_space']) ? $this->options['formats'][$field]['render']['minimal_space'] : 1, |
266 | 266 |
); |
267 |
|
|
268 |
$form['formats'][$field]['render']['eval_before'] = array( |
|
269 |
'#type' => 'textarea', |
|
270 |
'#title' => t('PHP Code Before Output'), |
|
271 |
'#default_value' => isset($this->options['formats'][$field]['render']['eval_before']) ? $this->options['formats'][$field]['render']['eval_before'] : '', |
|
272 |
); |
|
273 |
$form['formats'][$field]['render']['bypass_eval_before'] = array( |
|
274 |
'#type' => 'checkbox', |
|
275 |
'#title' => t('Use the PHP eval function instead php_eval.'), |
|
276 |
'#description' => t("WARNING: If you don't know the risk of using eval leave as it."), |
|
277 |
'#default_value' => !empty($this->options['formats'][$field]['render']['bypass_eval_before']) ? $this->options['formats'][$field]['render']['bypass_eval_before'] : FALSE, |
|
278 |
); |
|
279 |
|
|
280 |
$form['formats'][$field]['render']['eval_after'] = array( |
|
281 |
'#type' => 'textarea', |
|
282 |
'#title' => t('PHP Code After Output'), |
|
283 |
'#default_value' => isset($this->options['formats'][$field]['render']['eval_after']) ? $this->options['formats'][$field]['render']['eval_after'] : '', |
|
284 |
); |
|
285 |
$form['formats'][$field]['render']['bypass_eval_after'] = array( |
|
286 |
'#type' => 'checkbox', |
|
287 |
'#title' => t('Use the PHP eval function instead php_eval.'), |
|
288 |
'#description' => t("WARNING: If you don't know the risk of using eval leave as it."), |
|
289 |
'#default_value' => !empty($this->options['formats'][$field]['render']['bypass_eval_after']) ? $this->options['formats'][$field]['render']['bypass_eval_after'] : FALSE, |
|
290 |
); |
|
267 |
if (user_access('allow php in views pdf') && VIEWS_PDF_PHP) { |
|
268 |
$form['formats'][$field]['render']['eval_before'] = array( |
|
269 |
'#type' => 'textarea', |
|
270 |
'#title' => t('PHP Code Before Output'), |
|
271 |
'#default_value' => isset($this->options['formats'][$field]['render']['eval_before']) ? $this->options['formats'][$field]['render']['eval_before'] : '', |
|
272 |
); |
|
273 |
$form['formats'][$field]['render']['bypass_eval_before'] = array( |
|
274 |
'#type' => 'checkbox', |
|
275 |
'#title' => t('Use the PHP eval function instead php_eval.'), |
|
276 |
'#description' => t("WARNING: If you don't know the risk of using eval leave as it."), |
|
277 |
'#default_value' => !empty($this->options['formats'][$field]['render']['bypass_eval_before']) ? $this->options['formats'][$field]['render']['bypass_eval_before'] : FALSE, |
|
278 |
); |
|
279 |
|
|
280 |
$form['formats'][$field]['render']['eval_after'] = array( |
|
281 |
'#type' => 'textarea', |
|
282 |
'#title' => t('PHP Code After Output'), |
|
283 |
'#default_value' => isset($this->options['formats'][$field]['render']['eval_after']) ? $this->options['formats'][$field]['render']['eval_after'] : '', |
|
284 |
); |
|
285 |
$form['formats'][$field]['render']['bypass_eval_after'] = array( |
|
286 |
'#type' => 'checkbox', |
|
287 |
'#title' => t('Use the PHP eval function instead php_eval.'), |
|
288 |
'#description' => t("WARNING: If you don't know the risk of using eval leave as it."), |
|
289 |
'#default_value' => !empty($this->options['formats'][$field]['render']['bypass_eval_after']) ? $this->options['formats'][$field]['render']['bypass_eval_after'] : FALSE, |
|
290 |
); |
|
291 |
} |
|
291 | 292 |
|
292 | 293 |
} |
293 | 294 |
|
... | ... | |
325 | 326 |
'#title' => t('Upload New Template File'), |
326 | 327 |
); |
327 | 328 |
|
329 |
$form['#attached']['js'][] = array( |
|
330 |
'type' => 'setting', |
|
331 |
'data' => array( |
|
332 |
'urlIsAjaxTrusted' => array( |
|
333 |
$GLOBALS['base_url'] . '/' . current_path() => TRUE, |
|
334 |
), |
|
335 |
), |
|
336 |
); |
|
337 |
|
|
328 | 338 |
|
329 | 339 |
} |
330 | 340 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules