drupal_path_initialize
- Versions
- 7
drupal_path_initialize()
Initialize the $_GET['q'] variable to the proper normal path.
Code
includes/path.inc, line 15
<?php
function drupal_path_initialize() {
if (!empty($_GET['q'])) {
$_GET['q'] = drupal_get_normal_path(trim($_GET['q'], '/'));
}
else {
$_GET['q'] = drupal_get_normal_path(variable_get('site_frontpage', 'node'));
}
}
?>Login or register to post comments 