false, 'texte_modifier' => 'icone_modifier_message', 'texte_creer' => 'icone_ecrire_nouveau_message', 'texte_objets' => 'organiseur:messages', 'texte_objet' => 'organiseur:message', 'info_aucun_objet'=> 'info_aucun_message', 'info_1_objet' => 'info_1_message', 'info_nb_objets' => 'info_nb_messages', 'principale' => 'oui', 'champs_editables' => array('titre', 'texte', 'type','date_heure', 'date_fin', 'rv', 'id_auteur', 'destinataires'), 'field' => array( "id_message" => "bigint(21) NOT NULL", "titre" => "text DEFAULT '' NOT NULL", "texte" => "longtext DEFAULT '' NOT NULL", // normal, // pb (pense bete) // affich (annonce publique) "type" => "varchar(6) DEFAULT '' NOT NULL", "date_heure" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "date_fin" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "rv" => "varchar(3) DEFAULT '' NOT NULL", "statut" => "varchar(6) DEFAULT '0' NOT NULL", "id_auteur" => "bigint(21) DEFAULT 0 NOT NULL", "destinataires" => "text DEFAULT '' NOT NULL", "maj" => "TIMESTAMP" ), 'key' => array( "PRIMARY KEY" => "id_message", "KEY id_auteur" => "id_auteur" ), 'titre' => "titre, '' AS lang", 'date' => 'date_heure', 'statut' => array( array( 'champ' => 'statut', 'publie' => 'publie', 'previsu' => '!', 'exception' => array('statut','tout') ), ), 'rechercher_champs' => array( 'titre' => 8, 'texte' => 1 ), ); return $tables; } /** * Interfaces des tables agenda et messagerie * * @param array $interfaces * @return array */ function organiseur_declarer_tables_interfaces($interfaces){ $interfaces['table_des_tables']['messages']='messages'; return $interfaces; } ?>