You are here

function path_redirect_get_path in Path redirect 6

1 call to path_redirect_get_path()
path_redirect_goto in ./path_redirect.module

File

./path_redirect.module, line 557

Code

function path_redirect_get_path($path = NULL) {
  if (!isset($path)) {
    if (drupal_is_front_page()) {
      $path = '<front>';
    }
    else {
      $path = $_GET['q'];
    }
  }
  else {
    if ($path == drupal_get_normal_path(variable_get('site_frontpage', 'node'))) {
      $path = '<front>';
    }
  }
  return $path;
}