drupal_init_path
Definition
drupal_init_path()
includes/path.inc, line 15
Description
Initialize the $_GET['q'] variable to the proper normal path.
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'));
}
}
?> 