Installed module, changed settings for article content type, worked well, but all basic page content types now have this authoring information. I checked the settings under basic page content type and it is turned off.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Snehal Brahmbhatt’s picture

I have checked for your issue and debug the code and found that under "Field" module of drupal core. if i comment $info = $cache->getBundleExtraFields($entity_type, $bundle); line submitted by module works perfect as we required.

Before :-

function field_info_extra_fields($entity_type, $bundle, $context) {
  $cache = _field_info_field_cache(); 
  $info = $cache->getBundleExtraFields($entity_type, $bundle); 

  return isset($info[$context]) ? $info[$context] : array();
}

After :-

function field_info_extra_fields($entity_type, $bundle, $context) {
  $cache = _field_info_field_cache(); 
  //$info = $cache->getBundleExtraFields($entity_type, $bundle); 

  return isset($info[$context]) ? $info[$context] : array();
}

Let me know if you face any query/concern regarding this.

Thanks,
Snehal Brahmbhatt | AddWeb Solution
https://www.drupal.org/user/3147795/track

amaisano’s picture

Having the same issue. After upgrading from 7.x-1.0-beta1 to 7.x-1.0, all my Basic Page nodes (the content type that comes with Drupal) are showing post info - it's not respecting the 'Display author and date information' checkbox on the content type settings page.

I think it might be a glitch in the install changes in 7.x-1.0, as I saw the 'Submitted By' item was suddenly present in the 'Default' view mode for the Basic Page content type in Manage Fields. I dragged it back into hidden fields and it no longer appears on Basic Page nodes.

However, I don't know if this really fixes the problem of the checkbox on the content type display settings being ignored.

Hacking core is not an option (comment #1).

LittleRedHen’s picture

Status: Active » Needs review
FileSize
731 bytes

I encountered the same problem. Here's a patch against the 1.x-dev branch that makes sure that the extra 'submitted_by' fields are only added to the Manage Display tab if submission information is actually being shown for this node type.

(There was already a fix in the 1.x-dev branch to respect the display-submission-info settings when viewing the node, but this addition should prevent the display settings from needing to be hidden).

You will need to flush all your caches after applying this patch to refresh the set of extra fields on each node type.

calbasi’s picture

Patch #3 work for me ;-)

NancyDru’s picture

Status: Needs review » Fixed

Applied patch. Thanks.

  • NancyDru committed 574f966 on 7.x-1.x
    Issue #2501923 by LittleRedHen: Fix extra fields.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.