diff --git a/modules/comment.module b/modules/comment.module index 4ea12cb4f748f1ecdd4af6e96e333a2dde6b108c..f7c9383f0c5266f41e4eac456d54b6a2734438c9 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -120,12 +120,13 @@ function comment_menu($may_cache) { $items[] = array('path' => 'admin/comment/configure/settings', 'title' => t('settings'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); + + $items[] = array('path' => 'comment/delete', 'title' => t('delete comment'), + 'callback' => 'comment_delete', 'access' => $access, 'type' => MENU_CALLBACK); $access = user_access('post comments'); $items[] = array('path' => 'comment/edit', 'title' => t('edit comment'), 'callback' => 'comment_edit', 'access' => $access, 'type' => MENU_CALLBACK); - $items[] = array('path' => 'comment/delete', 'title' => t('delete comment'), - 'callback' => 'comment_delete', 'access' => $access, 'type' => MENU_CALLBACK); } else { if (arg(0) == 'comment' && arg(1) == 'reply' && is_numeric(arg(2))) { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 4ea12cb4f748f1ecdd4af6e96e333a2dde6b108c..f7c9383f0c5266f41e4eac456d54b6a2734438c9 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -120,12 +120,13 @@ function comment_menu($may_cache) { $items[] = array('path' => 'admin/comment/configure/settings', 'title' => t('settings'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); + + $items[] = array('path' => 'comment/delete', 'title' => t('delete comment'), + 'callback' => 'comment_delete', 'access' => $access, 'type' => MENU_CALLBACK); $access = user_access('post comments'); $items[] = array('path' => 'comment/edit', 'title' => t('edit comment'), 'callback' => 'comment_edit', 'access' => $access, 'type' => MENU_CALLBACK); - $items[] = array('path' => 'comment/delete', 'title' => t('delete comment'), - 'callback' => 'comment_delete', 'access' => $access, 'type' => MENU_CALLBACK); } else { if (arg(0) == 'comment' && arg(1) == 'reply' && is_numeric(arg(2))) {