This project is not covered by Drupal’s security advisory policy.

define "iconthemes" and provide an api to get an item by it's name.

In many places the use of icons makes for a nicer gui. In order to get a more unified look, it doesn't make sense if every module brings along it's own icons, but it should be able to ask the system for an icon by a functional name.
I think we need such an API in drupal core, but for prototyping and discussing a module in contrib should be fine.

We are not the first to talk about icon themes, so I have taken a look at the freedesktop project where some material can be found.
A good starting point is http://tango.freedesktop.org/Standard_Icon_Naming_Specification, of special interest may be the icon naming specification and the icon theme specification.

Why do I want to reuse their icon-theme work?
Because it would enable us to reuse existing icons themes (there are lots for gnome and kde) to provide icons for drupal installations.

I have converted the pseudo-code from the icon-theme specification to php and will commit it shortly to cvs, but there's not yet functional code!. I think the file-based lookup scheme wouldn't work scalable for a web-application, and we need to convert it to get the right data out from a nice cache-table.
The code is intended to encourage discussion of how the API should look like, and ideally we would manage to bring something into shape in time for drupal 6. And also working as contrib module for drupal 5 of course ;-)

I hope for many responses here

Project information

Releases