function comment_menu_alter

Implements hook_menu_alter().

File

modules/comment/comment.module, line 296

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.