36 lines
822 B
PHP
36 lines
822 B
PHP
<?php
|
|
if (!defined('_ECRIRE_INC_VERSION')){
|
|
return;
|
|
}
|
|
|
|
include_spip('inc/cvtupload');
|
|
|
|
|
|
function formulaires_bigform_charger_dist($objet, $id_objet, $mode = 'auto', $args = array()) {
|
|
$valeurs = [
|
|
'_bigup_rechercher_fichiers' => true,
|
|
'id_objet' => $id_objet,
|
|
'objet' => $objet
|
|
];
|
|
|
|
$valeurs['objet_ok'] = '';
|
|
|
|
if (intval($id_objet) > 0 and $objet) {
|
|
$valeurs['objet_ok'] = 'ok';
|
|
}
|
|
|
|
return $valeurs;
|
|
}
|
|
|
|
function formulaires_bigform_verifier_dist($objet, $id_objet, $mode = 'auto', $args = array()) {
|
|
$erreurs = array();
|
|
return $erreurs;
|
|
}
|
|
|
|
function formulaires_bigform_traiter_dist($objet = 'article', $id_objet = 0, $mode = 'auto', $args = array()) {
|
|
|
|
$bigform = charger_fonction('bigform_traiter','inc');
|
|
|
|
//return [];
|
|
return $bigform($id_objet,$objet,$mode);
|
|
}
|