Go to the source code of this file.
Functions | |
comment_edit ($cid) | |
comment_reply ($node, $pid=NULL) |
Definition in file comment.pages.inc.
comment_reply | ( | $ | node, | |
$ | pid = NULL | |||
) |
This function is responsible for generating a comment reply form. There are several cases that have to be handled, including:
The node or comment that is being replied to must appear above the comment form to provide the user context while authoring the comment.
$node | Every comment belongs to a node. This is that node. | |
$pid | Some comments are replies to other comments. In those cases, $pid is the parent comment's cid. |
Definition at line 51 of file comment.pages.inc.
References $op, $output, db_fetch_object(), db_query(), drupal_goto(), drupal_set_breadcrumb(), drupal_set_message(), drupal_unpack(), l(), nid, t(), and theme().