1.20.x layout.module layout_menu_item_load($menu_item_name)

Load an individual Layout menu item.

Return value

LayoutMenuItem|boolean:

File

modules/layout/layout.module, line 1083
The Layout module creates pages and wraps existing pages in layouts.

Code

function layout_menu_item_load($menu_item_name) {
  $menu_items = layout_menu_item_load_multiple(array($menu_item_name));

  // Returned menu items are by path, so return the first item if it exists.
  if ($path = key($menu_items)) {
    return $menu_items[$path];
  }
  else {
    return FALSE;
  }
}