function admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit

nittany7 admin_devel.module admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state)
cis7 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 modules/contrib/admin_menu/admin_devel/admin_devel.module
Implements hook_form_FORMID_alter().

File

modules/contrib/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.'));
}