function drupal_path_initialize

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

1 call to drupal_path_initialize()
_drupal_bootstrap_full in includes/common.inc

File

includes/path.inc, line 15

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']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.