| 5 path.inc | drupal_init_path() |
| 6 path.inc | drupal_init_path() |
Initialize the $_GET['q'] variable to the proper normal path.
File
- includes/
path.inc, line 15 - Functions to handle paths in Drupal, including path aliasing.
Code
<?php
function drupal_init_path() {
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
Comments
Drupal 7 = drupal_path_initialize()
In D7 this is called:
drupal_path_initialize()