Inside the _print_generate_path function a fake node object is created and later on all preprocess_page functions are called. Quite often other modules / themes will check the $vars['node'] object and then use the type to determine if something special is needed for a page that renders a particular node.

I think it would fix a lot of compatibility issues with themes / modules when the fake node object would also contain a fake type, even if it is empty.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Johnny vd Laar created an issue. See original summary.

Johnny vd Laar’s picture

Johnny vd Laar’s picture

Here is a patch for people using the 7.x-2.0 version.

renatog’s picture

Assigned: Unassigned » renatog
Status: Active » Reviewed & tested by the community
Issue tags: +ciandt-contrib

Hi, guys.

Makes sense.

I applied the patch and works good for me.

Thank you very much.

Regards.

  • RenatoG committed a88e482 on 7.x-2.x authored by Johnny vd Laar
    Issue #2896996 by Johnny vd Laar, RenatoG: _print_generate_path acts as...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Committed to dev branch.

Thank you very much for contribution @johnny-vd-laar.

Good Work.

Regards,

Status: Fixed » Closed (fixed)

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