Custompage calls node_load with a language parameter when you pass a title and type to the function. This uses the sites default language as a parameter to the node_load call. Some nodes may not have a language assigned and thus the default language (which always returns 'en' if its not set) will cause the node not to be found.

CommentFileSizeAuthor
#1 custompage-981002.patch1.22 KBjec006

Comments

jec006’s picture

StatusFileSize
new1.22 KB

To solve this issue I have added a parameter (which defaults to true) to the custompage_node_tile to allow you to NOT use a language parameter in the query. There should be no impact to people who are using this function as the parameter defaults to the old behavior - but this change will allow for sites which have nodes with no language to still use custompage_node_tile with a title and type.