formulaire et des pages gamutable pour gerer des configurations de facons semi automatique
47 lines
824 B
PHP
47 lines
824 B
PHP
<?php
|
|
/**
|
|
* Options au chargement du plugin GamuForm
|
|
*
|
|
* @plugin GamuForm
|
|
* @copyright 2020
|
|
* @author tofulm
|
|
* @licence GNU/GPL
|
|
* @package SPIP\Gamuform\Options
|
|
*/
|
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
|
return;
|
|
}
|
|
|
|
|
|
$GLOBALS['gamuform_objets'] = [ 'auteur'];
|
|
|
|
|
|
$GLOBALS['gamuform_auteur'] = [
|
|
[
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom' => 'nom',
|
|
'label' => 'Votre Nom',
|
|
'obligatoire' => 'oui',
|
|
//'fonction' => 'ma_super_fonction'
|
|
//'modifier' => 'ma_super_fonction_pour_modifier'
|
|
)
|
|
],
|
|
[
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom' => 'bio',
|
|
'label' => 'Votre BIO',
|
|
'obligatoire' => 'oui',
|
|
//'fonction' => 'ma_super_fonction'
|
|
)
|
|
],
|
|
[
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom' => 'nom_site',
|
|
'label' => 'Votre site perso',
|
|
)
|
|
]
|
|
];
|