function comment_help in Drupal 5
Same name and namespace in other branches
- 8 core/modules/comment/comment.module \comment_help()
- 4 modules/comment.module \comment_help()
- 6 modules/comment/comment.module \comment_help()
- 7 modules/comment/comment.module \comment_help()
- 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($section) {
switch ($section) {
case 'admin/help#comment':
$output = '<p>' . t('The comment module creates a discussion board for each post. Users can post comments to discuss a forum topic, weblog post, story, collaborative book page, etc. The ability to comment is an important part of involving members in a community dialogue.') . '</p>';
$output .= '<p>' . t('An administrator can give comment permissions to user groups, and users can (optionally) edit their last comment, assuming no others have been posted since. Attached to each comment board is a control panel for customizing the way that comments are displayed. Users can control the chronological ordering of posts (newest or oldest first) and the number of posts to display on each page. Comments behave like other user submissions. Filters, smileys and HTML that work in nodes will also work with comments. The comment module provides specific features to inform site members when new comments have been posted.') . '</p>';
$output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@comment">Comment page</a>.', array(
'@comment' => 'http://drupal.org/handbook/modules/comment/',
)) . '</p>';
return $output;
case 'admin/content/comment':
case 'admin/content/comment/new':
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>';
case 'admin/content/comment/settings':
return '<p>' . t("Comments can be attached to any node, and their settings are below. The display comes in two types: a 'flat list' where everything is flush to the left side, and comments come in chronological order, and a 'threaded list' where replies to other comments are placed immediately below and slightly indented, forming an outline. They also come in two styles: 'expanded', where you see both the title and the contents, and 'collapsed' where you only see the title. Preview comment forces a user to look at their comment by clicking on a 'Preview' button before they can actually add the comment.") . '</p>';
}
}