You are here

function drupal_path_initialize in Redis 7.3

Same name and namespace in other branches
  1. 7.2 redis.path.inc \drupal_path_initialize()

Initialize the $_GET['q'] variable to the proper normal path.

File

./redis.path.inc, line 33
Drupal default includes/path.inc file copy which only differs in:

Code

function drupal_path_initialize() {

  // Ensure $_GET['q'] is set before calling drupal_normal_path(), to support
  // path caching with hook_url_inbound_alter().
  if (empty($_GET['q'])) {
    $_GET['q'] = variable_get('site_frontpage', 'node');
  }
  $_GET['q'] = drupal_get_normal_path($_GET['q']);
}