compteSPIP/comptespip_options.php
tofulm 88c77f5a58 ajout d'une nouvelle entrée : modifier qui permet d'appeler une fonction
dans la declaration de la saisie pour faire un traitement spécifique à
un champ
2021-04-29 13:52:09 +02:00

46 lines
844 B
PHP

<?php
/**
* Options au chargement du plugin GamuCompte
*
* @plugin GamuCompte
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamucompte\Options
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
define('_LOGIN_TROP_COURT', 1);
$GLOBALS['comptespip_editer'] = [
[
'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' => 'prenom',
'label' => 'Votre prénom',
'obligatoire' => 'oui',
//'fonction' => 'ma_super_fonction'
)
],
[
'saisie' => 'input',
'options' => array(
'nom' => 'email',
'label' => 'Votre Email',
'obligatoire' => 'oui',
)
]
];