Everything registered in a hook (including non-API helpers) can be split off the main module to amazon_store.pages.inc, so it only gets loaded on Amazon store pages.
This concept can be pushed further creating amazon_store.theme.inc or even more, but we'll start with this as a first step.

CommentFileSizeAuthor
#1 1075490_Split_off_pages.patch45.82 KBpancho

Comments

pancho’s picture

Status: Active » Needs work
StatusFileSize
new45.82 KB

Committed enclosed patch as a start: http://drupalcode.org/project/amazon_store.git/commit/153a066
There is probably more that can be split off, so I'm leaving this issue open.