Please help me with my problem.
I have a table in database with mlid
(menu link id) column and path
column - every primary link menu has an image. I created my custom module which adds a file upload field to menu link edit form, and saves its mlid
(menu link id) and path
(path to image) to database.
My question is: how can I display my images in my menu items? I want just to add a <img src="..">
tag for every menu item.
Code:
<ul class="menu">
<li>
<a>First menu item</a>
// <img>HERE I WISH TO GENEARATE AN IMG TAG</img>
</li>
<li>
<a>Second menu item</a>
// <img>HERE I WISH TO GENEARATE AN IMG TAG</img>
</li>
...
</ul>
Please help.