function _accountmenu_menu_need_destination in Account menu 7
Same name and namespace in other branches
- 6 accountmenu.module \_accountmenu_menu_need_destination()
Returns TRUE if the path should have a ?destination=path parameter in the HTTP query.
1 call to _accountmenu_menu_need_destination()
- accountmenu_translated_menu_link_alter in ./
accountmenu.module - Implements hook_link_alter.
File
- ./
accountmenu.module, line 188 - accountmenu.module Provide a dynamic Log in/My account/Log out account menu
Code
function _accountmenu_menu_need_destination($path) {
$destination_paths = array(
'user/login',
'user/register',
);
return in_array($path, $destination_paths);
}