comment.module

  1. drupal
    1. drupal6
    2. drupal7

Version 1.713 (checked in on 2009/05/25 at 15:43:38 by dries)

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.

Funktionen & Methoden

NameBeschreibung
comment_accessThis is *not* a hook_access() implementation. This function is called to determine whether the current user has access to a particular comment.
comment_action_infoImplementation of hook_action_info().
comment_block_configureImplementation of hook_block_configure().
comment_block_listImplementation of hook_block_list().
comment_block_saveImplementation of hook_block_save().
comment_block_viewImplementation of hook_block_view().
comment_formGenerate the basic commenting form, for appending to a node or display on a separate page.
comment_form_add_previewForm builder; Generate and validate a comment preview form.
comment_form_alterImplementation of hook_form_alter().
comment_form_node_type_form_alterImplementation of hook_form_FORM_ID_alter().
comment_form_submitProcess comment form submissions; prepare the comment, store it, and set a redirection target.
comment_form_validateValidate comment form submissions.
comment_get_recentFind the most recent comments that are available to the current user.
comment_helpImplementation of hook_help().
comment_hook_infoImplementation of hook_hook_info().
comment_invoke_commentInvoke a hook_comment_[$op]() operation in all modules.
comment_linkImplementation of hook_link().
comment_linksBuild command links for a comment (e.g.\ edit, reply, delete) with respect to the current user's access permissions.
comment_loadLoad the entire comment by cid.
comment_menuImplementation of hook_menu().
comment_new_page_countCalculate page number for first new comment.
comment_node_deleteImplementation of hook_node_delete().
comment_node_insertImplementation of hook_node_insert().
comment_node_loadImplementation of hook_node_load().
comment_node_prepareImplementation of hook_node_prepare().
comment_node_search_resultImplementation of hook_node_search_result().
comment_node_typeImplementation of hook_node_type().
comment_node_update_indexImplementation of hook_node_update_index().
comment_node_urlA simple helper function.
comment_node_viewAn implementation of hook_node_view().
comment_num_newGet number of new comments for current user and specified node.
comment_num_repliesGet replies count for a comment.
comment_operationsComment operations. Offer different update operations depending on which comment administration page is being viewed.
comment_permImplementation of hook_perm().
comment_rankingImplementation of hook_ranking().
comment_renderRenders comment(s).
comment_saveAccepts a submission of new or changed comment content.
comment_themeImplementation of hook_theme().
comment_unpublish_actionDrupal action to unpublish a comment.
comment_unpublish_by_keyword_actionImplementation of a configurable Drupal action.
comment_unpublish_by_keyword_action_formForm builder; Prepare a form for blacklisted keywords.
comment_unpublish_by_keyword_action_submitProcess comment_unpublish_by_keyword_action_form form submissions.
comment_update_indexImplementation of hook_update_index().
comment_user_cancelImplementation of hook_user_cancel().
comment_validateValidate comment data.
int2vancodeGenerate vancode.
template_preprocess_commentProcess variables for comment.tpl.php.
template_preprocess_comment_foldedProcess variables for comment-folded.tpl.php.
template_preprocess_comment_wrapperProcess variables for comment-wrapper.tpl.php.
theme_comment_blockReturns a formatted list of recent comments to be displayed in the comment block.
theme_comment_flat_collapsedTheme comment flat collapsed view.
theme_comment_flat_expandedTheme comment flat expanded view.
theme_comment_form_boxTheme the comment form box.
theme_comment_post_forbiddenTheme a "you can't post comments" notice.
theme_comment_submittedTheme a "Submitted by ..." notice.
theme_comment_thread_collapsedTheme comment thread collapsed view.
theme_comment_thread_expandedTheme comment thread expanded view.
theme_comment_viewTheme a single comment block.
vancode2intDecode vancode back to an integer.
_comment_form_submitPrepare a comment for submission.
_comment_get_display_settingReturn a current comment display setting
_comment_get_modesReturn an array of viewing modes for comment listings.
_comment_per_pageReturn an array of "comments per page" settings from which the user can choose.
_comment_update_node_statisticsUpdates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated.

Konstanten

NameBeschreibung
COMMENT_ANONYMOUS_MAYNOT_CONTACTAnonymous posters cannot enter their contact information.
COMMENT_ANONYMOUS_MAY_CONTACTAnonymous posters may leave their contact information.
COMMENT_ANONYMOUS_MUST_CONTACTAnonymous posters are required to leave their contact information.
COMMENT_FORM_BELOWComment form should be shown below post or list of comments.
COMMENT_FORM_SEPARATE_PAGEComment form should be displayed on a separate page.
COMMENT_MODE_FLAT_COLLAPSEDComments are displayed in a flat list - collapsed.
COMMENT_MODE_FLAT_EXPANDEDComments are displayed in a flat list - expanded.
COMMENT_MODE_THREADED_COLLAPSEDComments are displayed as a threaded list - collapsed.
COMMENT_MODE_THREADED_EXPANDEDComments are displayed as a threaded list - expanded.
COMMENT_NODE_CLOSEDComments for this node are closed.
COMMENT_NODE_HIDDENComments for this node are hidden.
COMMENT_NODE_OPENComments for this node are open.
COMMENT_NOT_PUBLISHEDComment is awaiting approval.
COMMENT_PREVIEW_OPTIONALComment preview is optional.
COMMENT_PREVIEW_REQUIREDComment preview is required.
COMMENT_PUBLISHEDComment is published.

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen