function menu_delete_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_delete_links($menu_name)
cle7 menu_delete_links($menu_name)
elmsmedia7 menu_delete_links($menu_name)
icor7 menu_delete_links($menu_name)
meedjum_blog7 menu_delete_links($menu_name)
mooc7 menu_delete_links($menu_name)

Deletes all links for a menu.


$menu_name: The name of the menu whose links will be deleted.

Related topics

3 calls to menu_delete_links()
menu_delete in modules/menu/menu.module
Delete a custom menu and all contained links.
shortcut_set_delete in modules/shortcut/shortcut.module
Deletes a shortcut set.
shortcut_uninstall in modules/shortcut/shortcut.install
Implements hook_uninstall().


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


function menu_delete_links($menu_name) {
  $links = menu_load_links($menu_name);
  foreach ($links as $link) {
    // To speed up the deletion process, we reset some link properties that
    // would trigger re-parenting logic in _menu_delete_item() and
    // _menu_update_parental_status().
    $link['has_children'] = FALSE;
    $link['plid'] = 0;



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.