Loading manage_display.module +16 −3 Changes for manage_display.module: 16 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ function manage_display_entity_type_build(array &$entity_types) { 'taxonomy_term', 'aggregator_feed', 'aggregator_item', 'comment', ], 'enable_page_title_template' => [ 'node', Loading Loading @@ -69,9 +70,9 @@ function manage_display_base_field_info($entity_type_id) { // - Default uid and created to hidden as that's most often correct, // especially on teaser. $info['node']['title'] = [ 'label' => 'hidden', 'type' => 'title', 'weight' => -50, 'label' => 'hidden', 'weight' => -49, ]; $info['node']['created'] = ['region' => 'hidden']; $info['node']['uid'] = ['region' => 'hidden']; Loading Loading @@ -107,6 +108,18 @@ function manage_display_base_field_info($entity_type_id) { 'weight' => 2, ]; // Comment. // @todo Links use permalink, 'class' = 'permalink', 'rel' = 'bookmark'. // @todo Parent: visually hidden and "'In reply to @title by @username". $info['comment']['subject'] = $info['aggregator_item']['title']; $info['comment']['created'] = ['region' => 'hidden']; $info['comment']['uid'] = [ 'type' => 'submitted', 'label' => 'hidden', 'weight' => -50, ]; $info['comment']['pid'] = ['region' => 'hidden']; return isset($info[$entity_type_id]) ? $info[$entity_type_id] : []; } Loading Loading @@ -151,5 +164,5 @@ function manage_display_form_system_theme_settings_alter(&$form, FormStateInterf // Hide the theme settings for user_pictures because the submitted formatter // has its own setting. $form['theme_settings']['toggle_node_user_picture']['#access'] = FALSE; // $form['theme_settings']['toggle_comment_user_picture']['#access'] = FALSE; $form['theme_settings']['toggle_comment_user_picture']['#access'] = FALSE; } Loading
manage_display.module +16 −3 Changes for manage_display.module: 16 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ function manage_display_entity_type_build(array &$entity_types) { 'taxonomy_term', 'aggregator_feed', 'aggregator_item', 'comment', ], 'enable_page_title_template' => [ 'node', Loading Loading @@ -69,9 +70,9 @@ function manage_display_base_field_info($entity_type_id) { // - Default uid and created to hidden as that's most often correct, // especially on teaser. $info['node']['title'] = [ 'label' => 'hidden', 'type' => 'title', 'weight' => -50, 'label' => 'hidden', 'weight' => -49, ]; $info['node']['created'] = ['region' => 'hidden']; $info['node']['uid'] = ['region' => 'hidden']; Loading Loading @@ -107,6 +108,18 @@ function manage_display_base_field_info($entity_type_id) { 'weight' => 2, ]; // Comment. // @todo Links use permalink, 'class' = 'permalink', 'rel' = 'bookmark'. // @todo Parent: visually hidden and "'In reply to @title by @username". $info['comment']['subject'] = $info['aggregator_item']['title']; $info['comment']['created'] = ['region' => 'hidden']; $info['comment']['uid'] = [ 'type' => 'submitted', 'label' => 'hidden', 'weight' => -50, ]; $info['comment']['pid'] = ['region' => 'hidden']; return isset($info[$entity_type_id]) ? $info[$entity_type_id] : []; } Loading Loading @@ -151,5 +164,5 @@ function manage_display_form_system_theme_settings_alter(&$form, FormStateInterf // Hide the theme settings for user_pictures because the submitted formatter // has its own setting. $form['theme_settings']['toggle_node_user_picture']['#access'] = FALSE; // $form['theme_settings']['toggle_comment_user_picture']['#access'] = FALSE; $form['theme_settings']['toggle_comment_user_picture']['#access'] = FALSE; }