I'm working on a module which works as an adapter between Drupal and a framework which sends e-mails.
The framework supports inline image attachments, meaning that those images can be carried in the actual message and displayed in the recipients e-mail client without having to download those images from an external location.
I'm thinking that users of this module would be interested in having their e-mails themed so that they reflect the look and feel of the sending website. This is right now done through an 'email.tpl.php' file which the module requests the theming system to theme e-mails with.
Consider a themer/designer that works on theming e-mails. That person then figures out that it would be a good idea to have an inline image attached in e-mails - say a logo. However, how does the designer (via theme functions) tell the module to include one or more pictures which are required by the theme?
I had hoped that my module could make a hook available which other modules and themes could implement, but it appears that only modules can implent hooks. This, at least, applies when using module_invoke_all().
My question is thus; is there a way to let any theme provide feedback to a module similar to how other modules can interact with each other via hooks?