You are here

function _accountmenu_reset_menu in Account menu 7

Same name and namespace in other branches
  1. 6 accountmenu.module \_accountmenu_reset_menu()

Delete our links before making them again. we are really doing a move but there is no move api call so we delete first and re-create. !!! any menu customization made through the menu module UI are lost.

1 string reference to '_accountmenu_reset_menu'
accountmenu_settings_form in ./accountmenu.admin.inc
Returns the Account Menu settings form.

File

./accountmenu.module, line 92
accountmenu.module Provide a dynamic Log in/My account/Log out account menu

Code

function _accountmenu_reset_menu() {
  _accountmenu_delete_menu();
  _accountmenu_setup_menu();
  $t = get_t();
  drupal_set_message($t('Account menu has been reset, any menu customization is lost and must be <a href="@customize">customized</a> again.', array(
    '@customize' => url('admin/structure/menu/manage/' . variable_get('accountmenu_menu_name', 'accountmenu')),
  )));
}