comment.module

Enables users to comment on published content.

When installed, the Comment module creates a field that facilitates a discussion board for each Drupal entity to which a comment field is attached. Users can post comments to discuss a forum topic, story, collaborative book page, user etc.

File

core/modules/comment/comment.module

Functions

Name Description
comment_cron Implements hook_cron().
comment_entity_extra_field_info Implements hook_entity_extra_field_info().
comment_entity_insert Implements hook_entity_insert().
comment_entity_predelete Implements hook_entity_predelete().
comment_entity_storage_load Implements hook_entity_storage_load().
comment_entity_view Implements hook_entity_view().
comment_entity_view_display_presave Implements hook_ENTITY_TYPE_presave() for entity_view_display entities.
comment_field_config_create Implements hook_ENTITY_TYPE_create() for 'field_config'.
comment_field_config_delete Implements hook_ENTITY_TYPE_delete() for 'field_config'.
comment_field_config_update Implements hook_ENTITY_TYPE_update() for 'field_config'.
comment_field_storage_config_insert Implements hook_ENTITY_TYPE_insert() for 'field_storage_config'.
comment_form_field_storage_config_edit_form_alter Implements hook_form_FORM_ID_alter() for 'field_storage_config_edit_form'.
comment_form_field_ui_display_overview_form_alter Implements hook_form_FORM_ID_alter().
comment_form_field_ui_field_storage_add_form_alter Implements hook_form_FORM_ID_alter() for field_ui_field_storage_add_form.
comment_form_field_ui_form_display_overview_form_alter Implements hook_form_FORM_ID_alter().
comment_help Implements hook_help().
comment_node_links_alter Implements hook_node_links_alter().
comment_node_search_result Implements hook_node_search_result().
comment_node_update_index Implements hook_node_update_index().
comment_node_view_alter Implements hook_ENTITY_TYPE_view_alter() for node entities.
comment_preprocess_block Implements hook_preprocess_HOOK() for block templates.
comment_preprocess_field Prepares variables for comment field templates.
comment_preview Generates a comment preview.
comment_ranking Implements hook_ranking().
comment_theme Implements hook_theme().
comment_uri Entity URI callback.
comment_user_cancel Implements hook_user_cancel().
comment_user_predelete Implements hook_ENTITY_TYPE_predelete() for user entities.
comment_view Deprecated Generates an array for rendering a comment.
comment_view_multiple Deprecated Constructs render array from an array of loaded comments.
template_preprocess_comment Prepares variables for comment templates.
_comment_entity_uses_integer_id Determines if an entity type is using an integer-based ID definition.

Constants

Name Description
COMMENT_ANONYMOUS_MAYNOT_CONTACT Anonymous posters cannot enter their contact information.
COMMENT_ANONYMOUS_MAY_CONTACT Anonymous posters may leave their contact information.
COMMENT_ANONYMOUS_MUST_CONTACT Anonymous posters are required to leave their contact information.
COMMENT_NEW_LIMIT The time cutoff for comments marked as read for entity types other node.
doc_Drupal
2016-10-29 08:50:18
Comments
Leave a Comment

Please login to continue.