function purl_init in Persistent URL 6
Same name and namespace in other branches
- 7 purl.module \purl_init()
Implementation of hook_init() Checks for any valid persistent urls in request string and fire callback appropriately
File
- ./
purl.module, line 116
Code
function purl_init() {
static $once;
if (!isset($once)) {
$once = TRUE;
// Initialize a few things so that we can use them without warnings.
if (!isset($_GET['q'])) {
$_GET['q'] = '';
}
if (!isset($_REQUEST['q'])) {
$_REQUEST['q'] = '';
}
// Initialize the PURL path modification stack.
purl_inited(TRUE);
$_GET['q'] = $q = purl_language_strip($_REQUEST['q']);
drupal_init_path();
purl_get_normal_path($q, TRUE);
}
}