You are here

function login_destination_page_alter in Login Destination 7

Implements hook_page_alter().

File

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

Code

function login_destination_page_alter(&$page) {

  // Substitute toolbar's pre_render function to change links.
  if (isset($page['page_top']['toolbar']['#pre_render'])) {
    $page['page_top']['toolbar']['#pre_render'][] = 'login_destination_toolbar_pre_render';
  }
}