You are here

function login_destination_toolbar_pre_render in Login Destination 7

Helper function to change toolbar's links.

1 string reference to 'login_destination_toolbar_pre_render'
login_destination_page_alter in ./login_destination.module
Implements hook_page_alter().

File

./login_destination.module, line 273
Control where users are directed to, once they login

Code

function login_destination_toolbar_pre_render($toolbar) {

  // Add current param to be able to evaluate previous page.
  $toolbar['toolbar_user']['#links']['logout']['query'] = array(
    'current' => $_GET['q'],
  );
  return $toolbar;
}