By tatonca on
Hey there,
After reading many posts and this excellent description of the menu generation process - http://drupal.org/node/10901 - I have questions of exactly how to start building a module to supplant the menu items and links derived from the menu callback with icons. It would seem there are a few ways to do this:
1) possibly with CSS : to implement this properly I think you would have to patch core to add/have both an 'id=' and a 'class=' to the menu output so that you end up with, for example
Comments
Still no solutions?
I got same task. I try to choose 3rd way a module development, because cant find a different way.
First of all i need to insert my form into menu item editing form. There's two ways:
1) use hook_menu() (quick draft but works)
1) use hook_form_alter() (quick draft but works)
I prefer 1st way - it seems more flexible to control and scale module and better performance if page have more then one form.
Next i need to render menu items with images. Overload of theme_menu_item() gives a full control on this.
Any thoughts? Please, post a comment!