function menu_load_links


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 menu_load_links($menu_name)
cle7 menu_load_links($menu_name)
elmsmedia7 menu_load_links($menu_name)
icor7 menu_load_links($menu_name)
meedjum_blog7 menu_load_links($menu_name)
mooc7 menu_load_links($menu_name)

Returns an array containing all links for a menu.


$menu_name: The name of the menu whose links should be returned.

Return value

An array of menu links.

Related topics

2 calls to menu_load_links()
menu_delete_links in includes/
Deletes all links for a menu.
shortcut_set_load in modules/shortcut/shortcut.module
Loads the data for a shortcut set.


includes/, line 2954
API for the Drupal menu system.


function menu_load_links($menu_name) {
  $links = db_select('menu_links', 'ml', array('fetch' => PDO::FETCH_ASSOC))->fields('ml')->condition('ml.menu_name', $menu_name)
  // Order by weight so as to be helpful for menus that are only one level
  // deep.

  foreach ($links as &$link) {
    $link['options'] = unserialize($link['options']);
  return $links;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.