(va avec le dernier commit) ajout d'un champ ordre sur la table mots
This commit is contained in:
parent
d3224f9f02
commit
244b061c0b
1 changed files with 14 additions and 0 deletions
|
@ -5,11 +5,13 @@ if (!defined('_ECRIRE_INC_VERSION')) return;
|
||||||
|
|
||||||
function balint_declarer_tables_principales($tables_principales){
|
function balint_declarer_tables_principales($tables_principales){
|
||||||
|
|
||||||
|
/*
|
||||||
$tables_principales['spip_articles']['field']['surface'] = "text DEFAULT '' NOT NULL"; //duree
|
$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']['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']['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_1'] = "text DEFAULT '' NOT NULL";//realisation
|
||||||
$tables_principales['spip_articles']['field']['champ_2'] = "text DEFAULT '' NOT NULL";//intervenants
|
$tables_principales['spip_articles']['field']['champ_2'] = "text DEFAULT '' NOT NULL";//intervenants
|
||||||
|
*/
|
||||||
|
|
||||||
return $tables_principales;
|
return $tables_principales;
|
||||||
}
|
}
|
||||||
|
@ -64,5 +66,17 @@ function balint_declarer_champs_extras($champs = array()) {
|
||||||
'modifier' => array('auteur' => '0minirezo')),//Seuls les admins peuvent modifier
|
'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;
|
return $champs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue