ok i am trying to put the comments into a block. i have achieved that so far. BUT the display order of the fields are not respected this way. any tips what api functions/other code i maybe could take a look at.
i also thought about extracting the code out of the $node object and place it into a block, but that sounds not "clean" to me.
as a base i used the "commenblock" module:
<?php
// $Id: commentblock.module,v 1.1.2.2 2009/10/09 08:23:31 ximo Exp $
/**
* @file
* Moves the comment form into a block and provides a default view for the
* comment listing.
*
* Author:
* Dick Olsson (http://drupal.org/user/239911)
* Joakim Stai (http://drupal.org/user/88701)
*
* Sponsors:
* Senzilla (http://senzilla.com/)
* NodeOne (http://nodeone.se/)
*/
/**
* Implementation of hook_views_api().
*/
//function commentblock_views_api() {
// return array(
// 'api' => 2,
// 'path' => drupal_get_path('module', 'commentblock') .'/views',
// );
//}
/**
* Implementation of hook_nodeapi().
*
* This will make room for your custom comment view, by removing the regular
* comment listing from the node body.
*/
function commentblock_node_view($node, $view_mode, $langcode) {
unset($node->content['comments']);
//setting the anker right, seems hacky, find a better way