comment.module
Version 1.455.2.17 (checked in on 2007/10/17 at 21:35:42 by goba)
Enables users to comment on published content.
When enabled, the Drupal comment module creates a discussion board for each Drupal node. Users can post comments to discuss a forum topic, weblog post, story, collaborative book page, etc.
Constants
| Name | Description |
|---|---|
| COMMENT_ANONYMOUS_MAYNOT_CONTACT | Constants to define the anonymous poster contact handling |
| COMMENT_ANONYMOUS_MAY_CONTACT | |
| COMMENT_ANONYMOUS_MUST_CONTACT | |
| COMMENT_CONTROLS_ABOVE | Constants to define the position of the comment controls |
| COMMENT_CONTROLS_ABOVE_BELOW | |
| COMMENT_CONTROLS_BELOW | |
| COMMENT_CONTROLS_HIDDEN | |
| COMMENT_FORM_BELOW | |
| COMMENT_FORM_SEPARATE_PAGE | Constants to define the comment form location |
| COMMENT_MODE_FLAT_COLLAPSED | Constants to define the viewing modes for comment listings |
| COMMENT_MODE_FLAT_EXPANDED | |
| COMMENT_MODE_THREADED_COLLAPSED | |
| COMMENT_MODE_THREADED_EXPANDED | |
| COMMENT_NODE_DISABLED | Constants to define a node's comment state |
| COMMENT_NODE_READ_ONLY | |
| COMMENT_NODE_READ_WRITE | |
| COMMENT_NOT_PUBLISHED | |
| COMMENT_ORDER_NEWEST_FIRST | Constants to define the viewing orders for comment listings |
| COMMENT_ORDER_OLDEST_FIRST | |
| COMMENT_PREVIEW_OPTIONAL | Constants to define if comment preview is optional or required |
| COMMENT_PREVIEW_REQUIRED |
Functions
| Name | Description |
|---|---|
| comment_access | This is *not* a hook_access() implementation. This function is called to determine whether the current user has access to a particular comment. |
| comment_admin_overview | Menu callback; present an administrative comment listing. |
| comment_admin_overview_submit | Execute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting. |
| comment_admin_overview_validate | We can't execute any 'Update options' if no comments were selected. |
| comment_block | Implementation of hook_block(). |
| comment_configure | Menu callback; presents the comment settings page. |
| comment_confirm_delete_submit | |
| comment_controls | |
| comment_controls_submit | |
| comment_delete | Menu callback; delete a comment. |
| comment_edit | |
| comment_form | |
| comment_form_add_preview | |
| comment_form_alter | |
| comment_form_submit | |
| comment_form_validate | |
| comment_help | Implementation of hook_help(). |
| comment_invoke_comment | Invoke a hook_comment() operation in all modules. |
| comment_link | Implementation of hook_link(). |
| comment_links | |
| comment_menu | Implementation of hook_menu(). |
| comment_multiple_delete_confirm | List the selected comments and verify that the admin really wants to delete them. |
| comment_multiple_delete_confirm_submit | Perform the actual comment deletion. |
| comment_nodeapi | Implementation of hook_nodeapi(). |
| comment_node_url | |
| comment_num_all | |
| comment_num_new | get number of new comments for current user and specified node |
| comment_num_replies | |
| comment_operations | Comment operations. We offer different update operations depending on which comment administration page we're on. |
| comment_perm | Implementation of hook_perm(). |
| comment_render | |
| comment_reply | |
| comment_save | Accepts a submission of new or changed comment content. |
| comment_user | Implementation of hook_user(). |
| comment_validate | |
| int2vancode | Generate vancode. |
| theme_comment | |
| theme_comment_admin_overview | |
| theme_comment_block | |
| theme_comment_controls | |
| theme_comment_flat_collapsed | |
| theme_comment_flat_expanded | |
| theme_comment_folded | |
| theme_comment_post_forbidden | |
| theme_comment_preview | |
| theme_comment_thread_collapsed | |
| theme_comment_thread_expanded | |
| theme_comment_view | |
| vancode2int | Decode vancode back to an integer. |
| _comment_delete_thread | |
| _comment_form_submit | |
| _comment_get_display_setting | Return a current comment display setting |
| _comment_get_modes | Return an array of viewing modes for comment listings. |
| _comment_get_orders | Return an array of viewing orders for comment listings. |
| _comment_load | Load the entire comment by cid. |
| _comment_per_page | Return an array of "comments per page" settings from which the user can choose. |
| _comment_update_node_statistics | Updates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated. |
