diff --git a/base/balint.php b/base/balint.php index ffddfc2..5a8e4e6 100644 --- a/base/balint.php +++ b/base/balint.php @@ -5,11 +5,13 @@ if (!defined('_ECRIRE_INC_VERSION')) return; function balint_declarer_tables_principales($tables_principales){ + /* $tables_principales['spip_articles']['field']['surface'] = "text DEFAULT '' NOT NULL"; //duree $tables_principales['spip_articles']['field']['surface_parking'] = "text DEFAULT '' NOT NULL"; //date_pv $tables_principales['spip_articles']['field']['loyer'] = "text DEFAULT '' NOT NULL";//lieux_pv $tables_principales['spip_articles']['field']['champ_1'] = "text DEFAULT '' NOT NULL";//realisation $tables_principales['spip_articles']['field']['champ_2'] = "text DEFAULT '' NOT NULL";//intervenants + */ return $tables_principales; } @@ -64,5 +66,17 @@ function balint_declarer_champs_extras($champs = array()) { 'modifier' => array('auteur' => '0minirezo')),//Seuls les admins peuvent modifier ), ); + $champs['spip_mots']['ordre'] = array( + 'saisie' => 'input',//Type du champ (voir plugin Saisies) + 'options' => array( + 'nom' => 'ordre', + 'label' => 'ordre', + 'sql' => "varchar(30) NOT NULL DEFAULT ''", + 'defaut' => '',// Valeur par défaut + 'restrictions'=>array( + 'voir' => array('auteur' => ''),//Tout le monde peut voir + 'modifier' => array('auteur' => '0minirezo')),//Seuls les admins peuvent modifier + ), + ); return $champs; }