summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module15
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 48bf19425..e4d6e43b6 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -159,19 +159,20 @@ function comment_theme() {
* Implement hook_menu().
*/
function comment_menu() {
- $items['admin/content/comment'] = array(
+ $items['admin/content/content/comment'] = array(
'title' => 'Comments',
'description' => 'List and edit site comments and the comment approval queue.',
'page callback' => 'comment_admin',
'access arguments' => array('administer comments'),
+ 'type' => MENU_LOCAL_TASK,
);
// Tabs begin here.
- $items['admin/content/comment/new'] = array(
+ $items['admin/content/content/comment/new'] = array(
'title' => 'Published comments',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
- $items['admin/content/comment/approval'] = array(
+ $items['admin/content/content/comment/approval'] = array(
'title' => 'Approval queue',
'page arguments' => array('approval'),
'access arguments' => array('administer comments'),
@@ -2409,3 +2410,11 @@ function comment_ranking() {
),
);
}
+
+/**
+ * Implement hook_menu_alter().
+ */
+function comment_menu_alter(&$items) {
+ // Add comments to the description for admin/content/content.
+ $items['admin/content/content']['description'] = "View, edit, and delete your site's content and comments.";
+}