You are here

function account_sync_target_path in Account Sync 7.2

Same name and namespace in other branches
  1. 6 account_sync_sso/account_sync_sso.module \account_sync_target_path()

Generate a drupal path based on the given arguments.

2 calls to account_sync_target_path()
account_sync_sso_goto in account_sync_sso/account_sync_sso.module
Redirect the user to the server they wish to login at.
account_sync_sso_login in account_sync_sso/account_sync_sso.module
Login the specified user.

File

account_sync_sso/account_sync_sso.module, line 154
Handle single sign-on functionality for the account sync module

Code

function account_sync_target_path($args, $count = 1) {
  while ($count-- > 0) {
    array_shift($args);
  }
  $target_path = implode('/', $args);
  return $target_path;
}