summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-28 11:08:30 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-28 11:08:30 +0000
commitfdb422b8a27539938404cdc3d1a1b73bc01f5d4a (patch)
tree74713be38cd84990f289427e828b26e7e0a8ec8d /modules/comment
parentcf7750838d0e4d47928478776245f041030c1ac4 (diff)
downloadbrdo-fdb422b8a27539938404cdc3d1a1b73bc01f5d4a.tar.gz
brdo-fdb422b8a27539938404cdc3d1a1b73bc01f5d4a.tar.bz2
- Patch #742318 by sun, yched: fields are editable regardless of whether an bundle instance exists, missing menu titles, etc.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module30
1 files changed, 15 insertions, 15 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index aa66c9f87..8ab3925d7 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -287,6 +287,21 @@ function comment_menu() {
}
/**
+ * Implements hook_menu_alter().
+ */
+function comment_menu_alter(&$items) {
+ // Add comments to the description for admin/content.
+ $items['admin/content']['description'] = "Administer content and comments";
+
+ // Adjust the Field UI tabs on admin/structure/types/manage/[node-type].
+ // See comment_entity_info().
+ $items['admin/structure/types/manage/%comment_node_type/comment/fields']['title'] = 'Comment fields';
+ $items['admin/structure/types/manage/%comment_node_type/comment/fields']['weight'] = 3;
+ $items['admin/structure/types/manage/%comment_node_type/comment/display']['title'] = 'Comment display';
+ $items['admin/structure/types/manage/%comment_node_type/comment/display']['weight'] = 4;
+}
+
+/**
* Returns a menu title which includes the number of unapproved comments.
*/
function comment_count_unpublished() {
@@ -2505,21 +2520,6 @@ function comment_ranking() {
}
/**
- * Implements hook_menu_alter().
- */
-function comment_menu_alter(&$items) {
- // Add comments to the description for admin/content.
- $items['admin/content']['description'] = "Administer content and comments";
-
- // Adjust the Field UI tabs on admin/structure/types/manage/[node-type].
- // See comment_entity_info().
- $items['admin/structure/types/manage/%comment_node_type/comment/fields']['title'] = 'Comment fields';
- $items['admin/structure/types/manage/%comment_node_type/comment/fields']['weight'] = 3;
- $items['admin/structure/types/manage/%comment_node_type/comment/display']['title'] = 'Comment display';
- $items['admin/structure/types/manage/%comment_node_type/comment/display']['weight'] = 4;
-}
-
-/**
* Implements hook_rdf_mapping().
*/
function comment_rdf_mapping() {