Same name and namespace in other branches
  1. 10 core/modules/comment/comment.module \comment_help()
  2. 4.6.x modules/comment.module \comment_help()
  3. 4.7.x modules/comment.module \comment_help()
  4. 5.x modules/comment/comment.module \comment_help()
  5. 7.x modules/comment/comment.module \comment_help()
  6. 8.9.x core/modules/comment/comment.module \comment_help()
  7. 9 core/modules/comment/comment.module \comment_help()

Implementation of hook_help().

File

modules/comment/comment.module, line 125
Enables users to comment on published content.

Code

function comment_help($path, $arg) {
  switch ($path) {
    case 'admin/help#comment':
      $output = '<p>' . t('The comment module allows visitors to comment on your posts, creating ad hoc discussion boards. Any <a href="@content-type">content type</a> may have its <em>Default comment setting</em> set to <em>Read/Write</em> to allow comments, or <em>Disabled</em>, to prevent comments. Comment display settings and other controls may also be customized for each content type (some display settings are customizable by individual users).', array(
        '@content-type' => url('admin/content/types'),
      )) . '</p>';
      $output .= '<p>' . t('Comment permissions are assigned to user roles, and are used to determine whether anonymous users (or other roles) are allowed to comment on posts. If anonymous users are allowed to comment, their individual contact information may be retained in cookies stored on their local computer for use in later comment submissions. When a comment has no replies, it may be (optionally) edited by its author. The comment module uses the same input formats and HTML tags available when creating other forms of content.') . '</p>';
      $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@comment">Comment module</a>.', array(
        '@comment' => 'http://drupal.org/handbook/modules/comment/',
      )) . '</p>';
      return $output;
    case 'admin/content/comment':
      return '<p>' . t("Below is a list of the latest comments posted to your site. Click on a subject to see the comment, the author's name to edit the author's user information, 'edit' to modify the text, and 'delete' to remove their submission.") . '</p>';
    case 'admin/content/comment/approval':
      return '<p>' . t("Below is a list of the comments posted to your site that need approval. To approve a comment, click on 'edit' and then change its 'moderation status' to Approved. Click on a subject to see the comment, the author's name to edit the author's user information, 'edit' to modify the text, and 'delete' to remove their submission.") . '</p>';
  }
}