There isn't an 'all albums' hook... The best way would be to change the hook location to 'global_start' or one of the global hooks, check the THIS_SCRIPT define and only allow the rest of the code to execute when THIS_SCRIPT is defined as what it is defined as in the all albums file. You would also have to modifify the 'Latest Album Picture' plugin that executes on the hook location 'cache_templates' and change the THIS_SCRIPT check against that value as well instead of 'index' as it does now.
|