imprimir un solo comentario drupal
AUTOR PREGUNTA #1
-
¿Tienes la misma pregunta? Yo también
Esto también te interesa!
PREGUNTAS SIMILARES
#2
function print_comment($cid) { $sql = "SELECT * FROM {comment} c WHERE c.cid = %d"; if ($comment = db_fetch_object(db_rewrite_sql(db_query($sql, $cid), 'c')) { return theme('my_special_comment_formatting', $comment); } }
#3
Debes dirigirte a modules/comment/comment.tpl.php y allí implementa la siguiente función:
function print_comment($cid) { $sql = "SELECT * FROM {comment} c WHERE c.cid = %d"; if ($comment = db_fetch_object(db_rewrite_sql(db_query($sql, $cid), 'c')) { return theme('my_special_comment_formatting', $comment); } }
Me vino de fábula y eso que no fui el que lo pregunté jeje. Gracias Leandro.