'bordabord:visuel_grille', 'visuelpresentation' => 'bordabord:visuel_presentation' ); $nouveaux_roles_objets = array( 'articles' => array( 'choix' => array_keys($nouveaux_roles_titres), 'defaut' => '' ) ); // les anciens rôles $anciens_roles_titres = is_array($tables['spip_documents']['roles_titres']) ? $tables['spip_documents']['roles_titres'] : array(); $anciens_roles_objets = is_array($tables['spip_documents']['roles_objets']) ? $tables['spip_documents']['roles_objets'] : array(); // On mélange le tout $roles_titres = array_merge($nouveaux_roles_titres, $anciens_roles_titres); $roles_objets = array_merge($nouveaux_roles_objets, $anciens_roles_objets); array_set_merge($tables, 'spip_documents', array( "roles_titres" => $roles_titres, "roles_objets" => $roles_objets )); return $tables; }