'controler_petition', 'url_edit'=>'controler_petition', 'editable'=>'non', 'principale' => 'oui', 'page'=>'', // pas de page editoriale pour une petition 'texte_retour' => 'icone_retour', 'texte_objets' => 'petitions:titre_petitions', 'texte_objet' => 'petitions:titre_petition', 'titre' => "texte as titre, '' AS lang", 'field'=> array( "id_petition" => "bigint(21) NOT NULL", "id_article" => "bigint(21) DEFAULT '0' NOT NULL", "email_unique" => "CHAR (3) DEFAULT '' NOT NULL", "site_obli" => "CHAR (3) DEFAULT '' NOT NULL", "site_unique" => "CHAR (3) DEFAULT '' NOT NULL", "message" => "CHAR (3) DEFAULT '' NOT NULL", "texte" => "LONGTEXT DEFAULT '' NOT NULL", "statut" => "VARCHAR (10) DEFAULT 'publie' NOT NULL", "maj" => "TIMESTAMP" ), 'key' => array( "PRIMARY KEY" => "id_petition", "UNIQUE id_article" => "id_article" ), 'statut' => array( array('champ'=>'statut','publie'=>'publie,off','previsu'=>'publie,off','exception'=>array('statut')), ), ); $tables['spip_signatures'] = array( 'url_voir'=>'controler_petition', 'url_edit'=>'controler_petition', 'editable'=>'non', 'principale' => 'oui', 'page'=>'', // pas de page editoriale pour une signature 'texte_retour' => 'icone_retour', 'texte_objets' => 'public:signatures_petition', 'texte_objet' => 'entree_signature', 'info_aucun_objet'=> 'petitions:aucune_signature', 'info_1_objet' => 'petitions:une_signature', 'info_nb_objets' => 'petitions:nombre_signatures', 'titre' => "nom_email as titre, '' AS lang", 'date' => 'date_time', 'field'=> array( "id_signature" => "bigint(21) NOT NULL", "id_petition" => "bigint(21) DEFAULT '0' NOT NULL", # "id_article" => "bigint(21) DEFAULT '0' NOT NULL", "date_time" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "nom_email" => "text DEFAULT '' NOT NULL", "ad_email" => "text DEFAULT '' NOT NULL", "nom_site" => "text DEFAULT '' NOT NULL", "url_site" => "text DEFAULT '' NOT NULL", "message" => "mediumtext DEFAULT '' NOT NULL", "statut" => "varchar(10) DEFAULT '0' NOT NULL", "maj" => "TIMESTAMP" ), 'key' => array( "PRIMARY KEY" => "id_signature", "KEY id_petition" => "id_petition", # "KEY id_article" => "id_article", "KEY statut" => "statut" ), 'join' => array( "id_signature"=>"id_signature", "id_petition"=>"id_petition" ), 'tables_jointures'=> array( 'petitions' ), 'statut' => array( array('champ'=>'statut','publie'=>'publie','previsu'=>'publie','exception'=>array('statut','tout')), ), 'rechercher_champs' => array( 'nom_email' => 2, 'ad_email' => 4, 'nom_site' => 2, 'url_site' => 4, 'message' => 1 ), 'icone_objet' => 'petition', ); return $tables; } ?>