function asset_pathinfo in Asset 5
Same name and namespace in other branches
- 6 inc/asset.routines.inc \asset_pathinfo()
wrapper around pathinfo() that strips file_directory_path from path and . from dirname
1 call to asset_pathinfo()
File
- ./
asset.module, line 801
Code
function asset_pathinfo($path) {
$path = trim(str_replace(file_directory_path(), '', $path), '/');
$info = pathinfo($path);
if ($info['dirname'] == '.') {
$info['dirname'] = '';
}
return $info;
}