function admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit

cis7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)
cle7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)
elmsmedia7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)
icor7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)
meedjum_blog7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)
mooc7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)

Form submit handler to wipe and rebuild all 'module' = 'system' menu links.

1 string reference to 'admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit'
admin_devel_form_admin_menu_theme_settings_alter in sites/all/modules/ulmus/admin_menu/admin_devel/admin_devel.module
Implements hook_form_FORMID_alter().

File

sites/all/modules/ulmus/admin_menu/admin_devel/admin_devel.module, line 24
Administration and debugging functionality for developers and site builders.

Code

function admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state) {
  // Delete all auto-generated menu links derived from menu router items.
  db_delete('menu_links')->condition('module', 'system')->execute();
  // Rebuild menu links from current menu router items.
  menu_rebuild();

  drupal_set_message(t('System links derived from menu router paths have been rebuilt.'));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.