ATM, print uses it's own icons for displaying the link icon for printing and emailing.
As far as I understand the code, these are called in print_ui.module, function theme_print_ui_format_link.
Line 512 calls drupal_get_path('module', $module) . '/icons/' . $link['icon']; to get the icon from the submodule.
This makes is impossible (without patching the print module and overwriting e.g. the icons/print-icon.png) to use a themed icon.
Wouldn't it be better to fetch a "generic" print icon from the theme - and provide the default if the theme has none?
Then it would be easy to provide an icon by the theme.
Comments
Comment #1
sonictruth commentedHaving this module use render arrays or the theme system for the links would would make this kind of thing infinitely easier. Seems like a glaring oversight to me.
Comment #2
Renee S commentedNot impossible: that's a theme function, you can override it in your theme's template.php file. For example:
Comment #3
sonictruth commentedI know it's possible to override the theme function and that's actually what I ended up doing but if the module was building render arrays instead of markup it would be way easier to adjust the icons.