You are here

function configuration_menu_link_load in Configuration Management 7

Load a menu link by its menu_name:link_path identifier.

3 calls to configuration_menu_link_load()
menu_links_configuration_export in includes/
Implements hook_configuration_export().
menu_links_configuration_export_render in includes/
Implements hook_configuration_export_render()
menu_links_configuration_rebuild_ordered in includes/
Generate a depth tree of all menu links.


includes/, line 302


function configuration_menu_link_load($identifier) {
  list($menu_name, $link_path) = explode(':', $identifier, 2);
  $link = db_select('menu_links')
    ->fields('menu_links', array(
    ->condition('menu_name', $menu_name)
    ->condition('link_path', $link_path)
  if ($link) {
    $link['options'] = unserialize($link['options']);
    return $link;
  return FALSE;