diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 30 |
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() { |