Just pushed the initial commit. Here is the beginning of an API:
http://drupalcode.org/project/icon.git/blob/refs/heads/7.x-1.x:/icon.api...
Here is an "example" icon provider using Lullabot's icon set (which are just single image files):
http://drupalcode.org/project/icon.git/blob/refs/heads/7.x-1.x:/provider...
The concept is rather dynamic, though. You could easily provide support for any type of markup or implementation (static images, sprites, webfonts, custom, etc). This will allow any icon from any bundle provider to be inserted with whatever the API integrates with.
Here is a list of modules I am currently thinking would benefit greatly from this API. They really don't work at the moment, but you'll get the idea:
http://drupalcode.org/project/icon.git/tree/refs/heads/7.x-1.x:/modules
I'd appreciate any feedback. The concept of icons have plagued Drupal as far back as 2007 (if not longer), so the more we can all discuss this, the better.
Comments
Comment #1
markhalliwellDone
Comment #2.0
(not verified) commentedUpdated issue summary.