function features_menu_link_load in Features 6
Same name and namespace in other branches
- 7.2 includes/features.menu.inc \features_menu_link_load()
- 7 includes/features.menu.inc \features_menu_link_load()
Load a menu link by its menu_name:link_path identifier.
3 calls to features_menu_link_load()
- menu_links_features_export in includes/
features.menu.inc - Implementation of hook_features_export().
- menu_links_features_export_render in includes/
features.menu.inc - Implementation of hook_features_export_render()
- menu_links_features_rebuild_ordered in includes/
features.menu.inc - Generate a depth tree of all menu links.
File
- includes/
features.menu.inc, line 339
Code
function features_menu_link_load($identifier) {
list($menu_name, $link_path) = explode(':', $identifier, 2);
$result = db_query("SELECT menu_name, mlid, plid, link_path, router_path, link_title, options, module, hidden, external, has_children, expanded, weight FROM {menu_links} WHERE menu_name = '%s' AND link_path = '%s'", $menu_name, $link_path);
while ($link = db_fetch_array($result)) {
$link['options'] = unserialize($link['options']);
return $link;
}
return FALSE;
}