function ajax_drupal_path in Ajax 6
Gets internal path from actual url path
Parameters
$val String:
Return value
String
1 call to ajax_drupal_path()
- ajax_logintoboggan_ajax_alter in plugins/
loggintoboggan/ ajax_logintoboggan.module - Handles a special case for Login Toboggan redirection
File
- ./
ajax.module, line 99
Code
function ajax_drupal_path($val) {
$b = base_path();
$bs = sizeof($b);
if (substr($val, 0, $bs) === $b) {
return substr($val, $bs);
}
else {
return $val;
}
}