function _accountmenu_reset_menu in Account menu 6
Same name and namespace in other branches
- 7 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.
2 calls to _accountmenu_reset_menu()
- accountmenu_update_6100 in ./
accountmenu.install - Reset to enable to features.
- accountmenu_update_6101 in ./
accountmenu.install - Reset to enable to features.
1 string reference to '_accountmenu_reset_menu'
- accountmenu_settings_form in ./
accountmenu.admin.inc - Returns the Account Menu settings form.
File
- ./
accountmenu.module, line 58 - 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/build/menu-customize/' . variable_get('accountmenu_menu_name', 'accountmenu')),
)));
}