'aut_modele', 'principale' => 'oui', 'table_objet_surnoms' => array('autmodele'), 'field'=> array( 'id_aut_modele' => 'bigint(21) NOT NULL', 'nom' => 'varchar(55) NOT NULL DEFAULT ""', 'modele' => 'text NOT NULL DEFAULT ""', 'statut' => 'varchar(20) DEFAULT "0" NOT NULL', 'modifie' => 'varchar(55) NOT NULL DEFAULT ""', 'maj' => 'TIMESTAMP' ), 'key' => array( 'PRIMARY KEY' => 'id_aut_modele', 'KEY statut' => 'statut', ), 'titre' => 'nom AS titre, "" AS lang', 'champs_editables' => array('nom', 'modele', 'modifie'), 'statut_textes_instituer' => array( 'prepa' => 'texte_statut_en_cours_redaction', 'publie' => 'texte_statut_publie', 'refuse' => 'texte_statut_refuse', 'poubelle' => 'texte_statut_poubelle', ), 'statut'=> array( array( 'champ' => 'statut', 'publie' => 'publie', 'previsu' => 'publie,prepa', 'post_date' => 'date', 'exception' => array('statut','tout') ) ), 'texte_changer_statut' => 'aut_mod:texte_changer_statut_aut_mod', ); return $tables; } /** * Ajouter des champs aux tables auteurs et articles et rubrique * @param array $tables_principales * @return array */ function auted_declarer_tables_principales($tables_principales){ $tables_principales['spip_auteurs']['field']['autorisations'] = "text NOT NULL"; $tables_principales['spip_auteurs']['field']['aut_modele'] = "text NOT NULL"; return $tables_principales; }