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

Go to the source code of this file.


Functions

 comment_admin ($type= 'new')
 comment_admin_overview ($type= 'new', $arg)
 comment_admin_overview_validate ($form, &$form_state)
 comment_admin_overview_submit ($form, &$form_state)
 theme_comment_admin_overview ($form)
 comment_multiple_delete_confirm (&$form_state)
 comment_multiple_delete_confirm_submit ($form, &$form_state)
 comment_delete ($cid=NULL)
 comment_confirm_delete (&$form_state, $comment)
 comment_confirm_delete_submit ($form, &$form_state)
 _comment_delete_thread ($comment)


Detailed Description

Admin page callbacks for the comment module.

Definition in file comment.admin.inc.


Function Documentation

_comment_delete_thread ( comment  ) 

Perform the actual deletion of a comment and all its replies.

Parameters:
$comment An associative array describing the comment to be deleted.

Definition at line 301 of file comment.admin.inc.

References $result, db_fetch_object(), db_query(), subject, and watchdog().

Referenced by comment_confirm_delete_submit(), and comment_multiple_delete_confirm_submit().

Here is the call graph for this function:

comment_admin ( type = 'new'  ) 

Menu callback; present an administrative comment listing.

Definition at line 12 of file comment.admin.inc.

References $type, arg(), and drupal_get_form().

Here is the call graph for this function:

comment_admin_overview_submit ( form,
&$  form_state 
)

Process comment_admin_overview form submissions.

Execute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting.

Definition at line 123 of file comment.admin.inc.

References $value, cache_clear_all(), db_query(), drupal_set_message(), l(), nid, subject, t(), and watchdog().

Here is the call graph for this function:

comment_admin_overview_validate ( form,
&$  form_state 
)

Validate comment_admin_overview form submissions.

Definition at line 108 of file comment.admin.inc.

References drupal_goto(), form_set_error(), and t().

Here is the call graph for this function:

comment_confirm_delete_submit ( form,
&$  form_state 
)

Process comment_confirm_delete form submissions.

Definition at line 283 of file comment.admin.inc.

References _comment_delete_thread(), cache_clear_all(), drupal_set_message(), nid, and t().

Here is the call graph for this function:

comment_delete ( cid = NULL  ) 

Menu callback; delete a comment.

Parameters:
$cid The comment to be deleted.

Definition at line 246 of file comment.admin.inc.

References $output, db_fetch_object(), db_query(), drupal_get_form(), drupal_set_message(), and t().

Here is the call graph for this function:

comment_multiple_delete_confirm_submit ( form,
&$  form_state 
)

Process comment_multiple_delete_confirm form submissions.

Definition at line 226 of file comment.admin.inc.

References $value, _comment_delete_thread(), cache_clear_all(), drupal_set_message(), nid, and t().

Here is the call graph for this function:


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