From 5d76008993fc7edc5d4c1aedba8af81b36d1554e Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 5 Oct 2010 06:17:29 +0000 Subject: #438224 by dww, sun, netsensei, vordude, et al: 'Post comments without approval' permission name is completely misleading. --- modules/comment/comment.module | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 10df685fe..6a3cc884b 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -82,8 +82,8 @@ function comment_help($path, $arg) { $output .= '
'; $output .= '
' . t('Default and custom settings') . '
'; $output .= '
' . t("Each content type can have its own default comment settings configured as: Open to allow new comments, Hidden to hide existing comments and prevent new comments, or Closed to view existing comments, but prevent new comments. These defaults will apply to all new content created (changes to the settings on existing content must be done manually). Other comment settings can also be customized per content type, and can be overridden for any given item of content. When a comment has no replies, it remains editable by its author, as long as the author has a user account and is logged in.", array('@content-type' => url('admin/structure/types'))) . '
'; - $output .= '
' . t('Comment moderation') . '
'; - $output .= '
' . t("Comments from users who do not have the Post comments without approval permission are placed in the Unapproved comments queue, until a user who has permission to Administer comments moderates them as either published or deleted. Published comments can be bulk managed on the Published comments administration page.", array('@comment-approval' => url('admin/content/comment/approval'), '@admin-comment' => url('admin/content/comment'))) . '
'; + $output .= '
' . t('Comment approval') . '
'; + $output .= '
' . t("Comments from users who have the Skip comment approval permission are published immediately. All other comments are placed in the Unapproved comments queue, until a user who has permission to Administer comments publishes or deletes them. Published comments can be bulk managed on the Published comments administration page.", array('@comment-approval' => url('admin/content/comment/approval'), '@admin-comment' => url('admin/content/comment'))) . '
'; $output .= '
'; return $output; } @@ -386,10 +386,10 @@ function comment_permission() { 'title' => t('View comments'), ), 'post comments' => array( - 'title' => t('Post comments with approval'), + 'title' => t('Post comments'), ), - 'post comments without approval' => array( - 'title' => t('Post comments without approval'), + 'skip comment approval' => array( + 'title' => t('Skip comment approval'), ), 'edit own comments' => array( 'title' => t('Edit own comments'), @@ -1421,7 +1421,7 @@ function comment_save($comment) { 'mail' => '', 'homepage' => '', 'name' => '', - 'status' => user_access('post comments without approval') ? COMMENT_PUBLISHED : COMMENT_NOT_PUBLISHED, + 'status' => user_access('skip comment approval') ? COMMENT_PUBLISHED : COMMENT_NOT_PUBLISHED, ); foreach ($defaults as $key => $default) { if (!isset($comment->$key)) { @@ -1867,7 +1867,7 @@ function comment_form($form, &$form_state, $comment) { else { $author = ($comment->name ? $comment->name : variable_get('anonymous', t('Anonymous'))); } - $status = (user_access('post comments without approval') ? COMMENT_PUBLISHED : COMMENT_NOT_PUBLISHED); + $status = (user_access('skip comment approval') ? COMMENT_PUBLISHED : COMMENT_NOT_PUBLISHED); $date = ''; } @@ -2282,7 +2282,7 @@ function theme_comment_post_forbidden($variables) { if (!isset($authenticated_post_comments)) { // We only output a link if we are certain that users will get permission // to post comments by logging in. - $authenticated_post_comments = array_key_exists(DRUPAL_AUTHENTICATED_RID, user_roles(TRUE, 'post comments') + user_roles(TRUE, 'post comments without approval')); + $authenticated_post_comments = array_key_exists(DRUPAL_AUTHENTICATED_RID, user_roles(TRUE, 'post comments') + user_roles(TRUE, 'skip comment approval')); } if ($authenticated_post_comments) { -- cgit v1.2.3