You are here

function oa_core_login_perform_redirect in Open Atrium Core 7.2

Evaluate rules and perform redirect. This function is intended to be used by external modules.

Parameters

<type> $trigger:

<type> $current if null $_GET['q'] is used:

3 calls to oa_core_login_perform_redirect()
oa_core_login_submit in includes/oa_core.login.inc
Helper submit function.
oa_core_user_login in includes/oa_core.login.inc
Implements hook_user_login
oa_core_user_logout in includes/oa_core.login.inc
Implements hook_user_logout

File

includes/oa_core.login.inc, line 106
Code for controlling redirection of login Some of this code comes from the login_destination module

Code

function oa_core_login_perform_redirect($trigger = '', $current = NULL) {
  $destination = oa_core_login_get_destination($trigger, $current);

  // Check if we redirect
  if ($destination !== FALSE) {
    oa_core_login_prepare_goto($destination);
  }
}