drupal_init_path
includes/path.inc, строка 15
- Версии
- 5 – 6
drupal_init_path()
Initialize the $_GET['q']
variable to the proper normal path.
Код
<?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'));
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии