Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | print_generate_path-2896996-3.patch | 430 bytes | Johnny vd Laar |
#2 | print_generate_path-2896996-2.patch | 446 bytes | Johnny vd Laar |
Comments
Comment #2
Johnny vd Laar CreditAttribution: Johnny vd Laar at ezCompany commentedComment #3
Johnny vd Laar CreditAttribution: Johnny vd Laar at ezCompany commentedHere is a patch for people using the 7.x-2.0 version.
Comment #4
renatogHi, guys.
Makes sense.
I applied the patch and works good for me.
Thank you very much.
Regards.
Comment #6
renatogFixed.
Committed to dev branch.
Thank you very much for contribution @johnny-vd-laar.
Good Work.
Regards,