From fdb422b8a27539938404cdc3d1a1b73bc01f5d4a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Mar 2010 11:08:30 +0000 Subject: - Patch #742318 by sun, yched: fields are editable regardless of whether an bundle instance exists, missing menu titles, etc. --- modules/comment/comment.module | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'modules/comment/comment.module') 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 @@ -286,6 +286,21 @@ function comment_menu() { return $items; } +/** + * 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. */ @@ -2504,21 +2519,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(). */ -- cgit v1.2.3