diff --git a/base/librealire.php b/base/librealire.php index 98f50de..bbbd0ee 100644 --- a/base/librealire.php +++ b/base/librealire.php @@ -23,24 +23,26 @@ function librealire_declarer_champs_extras($champs = array()) { ) ), 'source' => array( - 'saisie' => 'input', + 'saisie' => 'textarea', 'options' => array( 'nom'=>'source', 'sql' => "text NOT NULL DEFAULT ''", 'rechercher' => true, 'label' => _T('librealire:source'), 'explication' => _T('librealire:source_explications'), - 'obligatoire' => false + 'obligatoire' => false, + 'inserer_barre' => 'forum' ) ), 'lieu' => array( - 'saisie' => 'input', + 'saisie' => 'textarea', 'options' => array( 'nom'=>'lieu', 'sql' => "text NOT NULL DEFAULT ''", 'rechercher' => true, 'label' => _T('librealire:lieu'), - 'obligatoire' => false + 'obligatoire' => false, + 'inserer_barre' => 'forum' ) ), 'date_t' => array( @@ -64,14 +66,15 @@ function librealire_declarer_champs_extras($champs = array()) { ) ), 'liens' => array( - 'saisie' => 'input', + 'saisie' => 'textarea', 'options' => array( 'nom'=>'liens', 'sql' => "text NOT NULL DEFAULT ''", 'rechercher' => false, 'label' => _T('librealire:liens'), 'explication' => _T('librealire:liens_explications'), - 'obligatoire' => false + 'obligatoire' => false, + 'inserer_barre' => 'forum' ) ), 'evenement' => array( @@ -80,8 +83,7 @@ function librealire_declarer_champs_extras($champs = array()) { 'nom'=>'evenement', 'sql' => "text NOT NULL DEFAULT ''", 'rechercher' => false, - 'label' => _T('librealire:evenement'), - 'explication' => _T('librealire:evenement_explications'), + 'label' => _T('librealire:evenement'), 'obligatoire' => false ) ), @@ -102,14 +104,14 @@ function librealire_declarer_champs_extras($champs = array()) { ) ), 'creditsvisuels' => array( - 'saisie' => 'input', + 'saisie' => 'textarea', 'options' => array( 'nom'=>'creditsvisuels', 'sql' => "text NOT NULL DEFAULT ''", 'rechercher' => false, - 'label' => _T('librealire:creditsvisuels'), - 'explication' => _T('librealire:creditsvisuels_explications'), - 'obligatoire' => false + 'label' => _T('librealire:creditsvisuels'), + 'obligatoire' => false, + 'inserer_barre' => 'forum' ) ), 'sanssommaire' => array( @@ -127,7 +129,7 @@ function librealire_declarer_champs_extras($champs = array()) { ); $champs['spip_mots']['soustitre'] = array( - 'saisie' => 'input',//Type du champ (voir plugin Saisies) + 'saisie' => 'input', 'options' => array( 'nom'=>'soustitre', 'sql' => "text NOT NULL DEFAULT ''", @@ -136,14 +138,6 @@ function librealire_declarer_champs_extras($champs = array()) { 'explication' => _T('librealire:soustitre_explications'), 'obligatoire' => false ) -// 'options' => array( -// 'nom' => 'titre_court', -// 'label' => _T('titrecourt:titre_court'), -// 'sql' => "varchar(30) NOT NULL DEFAULT ''", -// 'defaut' => '',// Valeur par défaut -// 'restrictions'=>array('voir' => array('auteur' => ''),//Tout le monde peut voir -// 'modifier' => array('auteur' => 'webmestre')),//Seuls les webmestres peuvent modifier -// ), ); return $champs; diff --git a/librealire_administrations.php b/librealire_administrations.php index 3e229f1..a34b026 100644 --- a/librealire_administrations.php +++ b/librealire_administrations.php @@ -39,6 +39,7 @@ function librealire_upgrade($nom_meta_base_version, $version_cible) { cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.2']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.3']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.4']); + cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.5.3']); // $maj['1.1.4'] = array( // array('maj_tables', array('spip_roles_documents')), // ); diff --git a/paquet.xml b/paquet.xml index 8b44102..cfe98c9 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,8 +1,8 @@