function _statspro_clean_path in Statistics Pro 6.2
Returns the cleaned version of the provided path.
Parameters
string $path:
Return value
string Returns the cleaned path
1 call to _statspro_clean_path()
- _statspro_path_cleaner in ./
statspro_path_aggregated.inc - Returns a string array with cleaned paths.
File
- ./
statspro_path_aggregated.inc, line 252
Code
function _statspro_clean_path($path) {
$path = trim($path);
if (strpos($path, '/') === 0) {
$path = drupal_substr($path, 1);
}
return $path;
}