C:/drupal/modules/comment/comment.pages.inc File Reference

Go to the source code of this file.


Functions

 comment_edit ($cid)
 comment_reply ($node, $pid=NULL)


Detailed Description

User page callbacks for the comment module.

Definition in file comment.pages.inc.


Function Documentation

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:

  • replies to comments
  • replies to nodes
  • attempts to reply to nodes that can no longer accept comments
  • respecting access permissions ('access comments', 'post comments', etc.)

The node or comment that is being replied to must appear above the comment form to provide the user context while authoring the comment.

Parameters:
$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.
Returns:
The rendered parent node or comment plus the new comment form.

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().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:17 2008 for SimpleTest by  1.5.5