By Luerssen on
Hello.
I created module to assigning icons to menu-items. Hooking, adding new field(icon_path) to menu add/edit form & saving in database work pretty
.
But how i can hook:
- edit query to fetch additional fields from menu_icons(mid, icon_path) table when menu-items request(dived into code found _build_menu(), menu_primary_links() functions, but dunno how to override it without hardcode?!)
- assign icon_path field to returning array.
What i want:
- get additional key/value in $primary_links, $secondary_links & etc named "icon_path", with value from menu_icons table or null.
Thanks.