function menu_icons_get_path in Menu Icons 6
Query the database for a particular icon
Parameters
Menu id $mlid:
Return value
path
2 calls to menu_icons_get_path()
- menu_icons_get_active_icon in ./
menu_icons.module - Return the path to the menu icon for the currently active item Useful for providing context-sensitive image blocks
- _menu_icons_get_form in ./
menu_icons.module - Build the form structure.
File
- ./
menu_icons.module, line 75 - Module to associate icons with menu items
Code
function menu_icons_get_path($mlid) {
return db_result(db_query("SELECT path FROM {menu_icons} WHERE mlid = %d", $mlid));
}